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>"
}

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

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