delete_branch
Delete a branch from a Bitbucket repository. Requires explicit confirmation to prevent accidental data loss.
Instructions
Delete a branch from a BitBucket repository.
WARNING: This is a destructive operation. The confirm parameter MUST be set to true to proceed with deletion.
Use this tool only when the user explicitly requests to delete a branch and has confirmed the deletion.
Args: branch_name: Name of the branch to delete. confirm: Must be True to proceed with deletion. This is a safety measure. repository: Repository slug. If not provided, uses current repository context. workspace: Workspace slug. If not provided, uses the default workspace.
Returns: Confirmation message or error if confirm is not True.
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": {
"branch_name": "<branch_name>",
"confirm": "<confirm>"
},
"name": "delete_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| workspace | No | ||
| repository | No | ||
| branch_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |