v2

latestOpenAPI 3.0.02026-08-013312111.4 MB
Refs

Delete a branch

Delete a branch in the specified repository.

The main branch is not allowed to be deleted and will return a 400 response.

The branch name should not include any prefixes (e.g. refs/heads).

delete/repositories/{workspace}/{repo_slug}/refs/branches/{name}

Response

Indicates that the specified branch was successfully deleted.