Skip to main content
DELETE
/
api
/
prompts
/
id
/
{id}
/
delete
curl -X DELETE "https://your-domain.com/api/prompts/id/550e8400-e29b-41d4-a716-446655440000/delete" \
  -H "Authorization: Bearer YOUR_API_KEY"
true
Permanently deletes a prompt, including all associated version history and access grants. This action cannot be undone. The user must be the prompt owner, have write access, or be an admin.

Path Parameters

id
string
required
The unique prompt ID to delete

Response

Response
boolean
required
Returns true if the prompt was successfully deleted, false otherwise

What Gets Deleted

When a prompt is deleted, the following are also removed:
  • All version history entries for the prompt
  • All access grants associated with the prompt
  • The prompt record itself

Error Responses

  • 401 Unauthorized: User lacks write access to this prompt
  • 404 Not Found: Prompt does not exist
curl -X DELETE "https://your-domain.com/api/prompts/id/550e8400-e29b-41d4-a716-446655440000/delete" \
  -H "Authorization: Bearer YOUR_API_KEY"
true