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}
Request
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/refs/branches/{name}
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: repository:write
- or HTTP basic
- or API key in header Authorization
Response
Indicates that the specified branch was successfully deleted.
Changes
No recorded changes to this operation across all 15 revisions of this API.