Delete Prompt
(v2)DELETE
Permanently deletes the prompt with all of its commits, branches, versions and labels. This cannot be undone. A prompt referenced by an AI connection cannot be deleted.
curl -X DELETE "https://api.confident-ai.com/v2/prompts/{promptId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<PROMPT-ID>"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
promptIdstringRequiredThe unique id of the prompt.
Response
Delete Prompt succeeded.
successbooleanIndicates if the request was successful.
dataobjectA reference to a prompt by its id.
Show 1 propertyHide 1 property
idstringThis is the unique id of the prompt.
deprecatedbooleanIndicates if this endpoint is deprecated.