Delete branch

Removes the branch.

Required scopes: WORKSPACE, REPOSITORY_WRITE

Resource URL

DELETE /workspaces/:domain/projects/:project_name/repository/branches/:name

URL Parameters

NameTypeDescription
domain
Required
StringThe workspace domain.
name
Required
StringThe name of the branch.
project_name
Required
StringThe name ID of the project.

GET Parameters

NameTypeDescription
forceBooleanRequired when the branch is not merged.

Example

Request

DELETE https://api.buddy.works/workspaces/buddy/projects/company-website/repository/branches/dev

Sample Response

HTTP

Status: 204 NoContent
X-Rate-Limit-Limit: 1
X-Rate-Limit-Remaining: 999