Skip to main content
DELETE
/
organizations
/
{organization}
/
databases
/
{database}
/
branches
/
{branch}
Delete a branch
curl --request DELETE \
  --url https://api.planetscale.com/v1/organizations/{organization}/databases/{database}/branches/{branch} \
  --header 'Authorization: Bearer <token>'

Authorizations

Authorization
string
header
required

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

Path Parameters

organization
string
required

The name of the organization the branch belongs to

database
string
required

The name of the database the branch belongs to

branch
string
required

The name of the branch

Query Parameters

delete_descendants
boolean

If true, recursively delete all descendant branches along with this branch

Response

Delete a branch