---
title: "Delete a branch"
method: DELETE
path: "/projects/{id}/databases/{databaseName}/branches/{branchName}"
tags: ["Database Branches"]
---

# Delete a branch

`DELETE /projects/{id}/databases/{databaseName}/branches/{branchName}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/databases/{databaseName}/branches/{branchName}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Marks the branch for teardown and returns immediately. The branch stops
accepting connections at once; its fork and its row are removed by a
background job, so a provider outage cannot leave the call hanging or the
branch half-deleted.

Deleting a branch that is still provisioning is allowed and stops the
build, and repeating the call while teardown is in progress is accepted
again. Once the branch is gone the call returns `404`.

## Path parameters

- `id` string, uuid, required
- `databaseName` string, required
- `branchName` string, required

## Response `202`

Deletion accepted and in progress

- object
  - `status` string, required
  - `message` string, required

## Other responses

- `404`: Project, database, or branch not found
- `503`: Branching is temporarily unavailable

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 5 breaking, 4 info
  - added the new path request parameter `branchName`
  - added the new path request parameter `databaseName`
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `404`
  - …5 more
- **2026-08-27** `bb44e98aba2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/databases/:databaseName/branches/:branchName/delete.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
