Delete a branch
Database branches
Delete a branch
Authorization
A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
Service Token Accesses
delete_branch
OAuth Scopes
| Resource | Scopes |
|---|---|
| Organization | delete_branches, delete_production_branches |
| Database | delete_branches, delete_production_branches |
| Branch | delete_branch |
DELETE
Delete a branch
Documentation Index
Fetch the complete documentation index at: https://planetscale.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
The name of the organization the branch belongs to
The name of the database the branch belongs to
The name of the branch
Query Parameters
If true, recursively delete all descendant branches along with this branch
Response
Delete a branch

