Manual
CLI
API
Log in Get started free

Delete a branch

Deletes a branch with its keys and translations.

Deletes a branch with its keys and translations.

HTTP
DELETE /branches/{branchId}

Access: Session token only. API keys get 403 with insufficient_scope.

Role: Project manager (organisation owners and admins are managers of every project).

Path parameters #

ParameterDescription
branchIdThe id of the branch.

Response 204 #

The branch is deleted. There is no body.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe branch does not exist, you have no access to its project, or branchId is not a UUID.
403forbiddenYou are a member of the project, but not a manager.
409branch_protectedThe branch is the protected main branch.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.