Introducing Confident Voice: Watch the Launch Video Now

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.

DELETE/v2/prompts/{promptId}
curl -X DELETE "https://api.confident-ai.com/v2/prompts/{promptId}" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "<PROMPT-ID>"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • promptIdstringRequired

    The unique id of the prompt.

Response

Delete Prompt succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    A reference to a prompt by its id.

    Show 1 propertyHide 1 property
    • idstring

      This is the unique id of the prompt.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI