Skip to main content
DELETE
/
snippet
Delete a snippet
curl --request DELETE \
  --url https://www.getsnippets.ai/api/prompts/snippet \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "message": "Resource deleted successfully"
  },
  "usage": {
    "remainingRequests": 123
  },
  "metadata": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.getsnippets.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication using Bearer token. Include your API key in the Authorization header.

Query Parameters

id
string<uuid>
required

The ID of the snippet to delete

Response

Snippet deleted successfully

success
boolean
Example:

true

data
object
usage
object
metadata
object