For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Trust CenterStatusSupportGet a demoPlatform
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
    • Data Models
    • API Conventions
  • Data Models
      • GETList Prompts
      • POSTPush Prompts
        • GETList Branches
        • POSTCreate Branch
        • PUTUpdate Branch
        • DELDelete Branch
  • Evals
  • Legacy
LogoLogo
Trust CenterStatusSupportGet a demoPlatform
Data ModelsPromptsBranches

Delete Branch

DELETE
https://api.confident-ai.com/v1/prompts/:alias/branches/:name
DELETE
/v1/prompts/:alias/branches/:name
$curl -X DELETE https://api.confident-ai.com/v1/prompts/PROMPT-ALIAS/branches/BRANCH-NAME \
> -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200Deleted
1{
2 "success": true,
3 "data": {
4 "id": "br_123456"
5 },
6 "deprecated": false
7}
Deletes an existing branch from your prompt on Confident AI.
Was this page helpful?
Previous

List Annotations

Next
Built with

Path parameters

aliasstringRequired
The unique alias of the prompt.
namestringRequired
The unique name of the branch you're trying to update.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Response

successboolean
This is true if the prompt branch was successfully deleted.
dataobject
deprecatedboolean
This is true if this endpoint is deprecated.