delete_branch
Delete a branch from a Bitbucket Server repository using the project key, repository slug, and full branch name.
Instructions
Delete a branch from a Bitbucket Server repository
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectKey": "<projectKey>",
"repoSlug": "<repoSlug>",
"branchName": "<branchName>"
},
"name": "delete_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoSlug | Yes | The repository slug | |
| branchName | Yes | The full branch name to delete (e.g., refs/heads/feature-branch) | |
| projectKey | Yes | The project key (e.g., PROJ) |