curl -X DELETE "https://your-domain.com/api/prompts/id/550e8400-e29b-41d4-a716-446655440000/delete" \
-H "Authorization: Bearer YOUR_API_KEY"
true
Prompts
Delete Prompt
Permanently delete a prompt and all its version history
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
The unique prompt ID to delete
Response
Returns
true if the prompt was successfully deleted, false otherwiseWhat 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
⌘I