bb_delete_branch
Delete a specified branch from a Bitbucket repository, while protecting the default branch from removal. Provide project key, repo slug, and branch name to remove it.
Instructions
Delete a branch from a repository. Refuses to delete the default branch.
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>",
"branch": "<branch>"
},
"name": "bb_delete_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Branch name to delete | |
| repoSlug | Yes | ||
| projectKey | Yes |