Delete
- DELETE
- /workspaces
- /:workspace
- /projects
- /:project_name
- /repository
- /branches
- /:name
Removes the branch.
Request
REQUIRED SCOPES
REPOSITORY_WRITE
URL PARAMETERS
workspacerequired string
The workspace name.namerequired string
The name of the branch.project_namerequired string
The name ID of the project.GET PARAMETERS
forceboolean
Required when the branch is not merged.Last modified on Oct 30, 2025
Example:
CURLcurl -X DELETE "https://api.buddy.works/workspaces/:workspace/projects/:project_name/repository/branches/:name" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json"
STATUS204 NoContent
LIMITSX-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999