---
title: "Delete Branch"
method: DELETE
path: "/v1/prompts/{alias}/branches/{name}"
tags: ["Prompt"]
---

# Delete Branch

`DELETE /v1/prompts/{alias}/branches/{name}`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/prompts/{alias}/branches/{name}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/prompts/:alias/branches/:name/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes an existing branch from your prompt on Confident AI.

## Response `200`

- DeletePromptBranchResponse
  - `success` boolean, required: This is true if the prompt branch was successfully deleted.
  - `data` object, required
    - `id` string, required: This is the ID of the deleted prompt branch.
  - `deprecated` boolean, required: This is true if this endpoint is deprecated.

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
