Skip to main content
DELETE
/
organizations
/
{organizationID}
/
projects
/
{projectID}
/
branches
/
{branchID}
Delete a branch
curl --request DELETE \
  --url https://api.xata.tech/organizations/{organizationID}/projects/{projectID}/branches/{branchID} \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://xata.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

organizationID
string
required

Unique identifier of the organization containing the project

Pattern: [a-zA-Z0-9_-~:]+
projectID
string
required

Unique identifier of the project containing the branch

branchID
string
required

Unique identifier of the branch to delete

Response

Branch successfully deleted