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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| workspace | No | ||
| repository | No | ||
| branch_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |