Delete
Removes the branch.
Required scopes: WORKSPACE
, REPOSITORY_WRITE
Resource URL
DELETE /workspaces/:domain/projects/:project_name/repository/branches/:name
URL Parameters
Name | Type | Description |
---|---|---|
domain Required | String | The workspace domain. |
name Required | String | The name of the branch. |
project_name Required | String | The name ID of the project. |
GET Parameters
Name | Type | Description |
---|---|---|
force | Boolean | Required 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
Last modified on April 26, 2022