Delete

  • DEL
  • /workspaces
  • /:workspace
  • /projects
  • /:project_name
  • /repository
  • /branches
  • /:name

Deletes a branch from the repository

Request

REQUIRED SCOPES
REPOSITORY_WRITE
URL PARAMETERS
workspacerequiredstring
The human-readable ID of the workspace

Example: "my-company"

project_namerequiredstring
The human-readable ID of the project

Example: "my-project"

namerequiredstring
The name of the branch

Example: "main"

Last modified on Jan 26, 2026

Request example

CURL
curl -X DELETE "https://api.buddy.works/workspaces/:workspace/projects/:project_name/repository/branches/:name" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json"
STATUS
204 Branch deleted successfully