v2

latestSwagger 2.02026-08-01331211921.0 KB
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.