Launch Week 02 wrapped — explore all five launches

Delete Branch

DELETEhttps://api.confident-ai.com/v2/prompts/{promptId}/branches/{branchId}

Deletes a branch of the prompt. The main branch, branches with open pull requests, and branches referenced by AI connections cannot be deleted.

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

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • promptIdstringRequired

    The unique id of the prompt.

  • branchIdstringRequired

    The unique id of the branch.

Response

Delete Branch succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    Show 1 propertyHide 1 property
    • idstring

      This is the unique id of the prompt branch.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI