Bitbucket DELETE Request
bb_deleteDelete Bitbucket resources such as branches, pull request comments, decline pull requests, remove approvals, or delete repositories using the Bitbucket API. Supports TOON and JSON output formats.
Instructions
Delete Bitbucket resources. Returns TOON format by default.
Output format: TOON (default) or JSON (outputFormat: "json")
Common operations:
Delete branch:
/repositories/{workspace}/{repo}/refs/branches/{branch_name}Delete PR comment:
/repositories/{workspace}/{repo}/pullrequests/{pr_id}/comments/{comment_id}Decline PR:
/repositories/{workspace}/{repo}/pullrequests/{id}/declineRemove PR approval:
/repositories/{workspace}/{repo}/pullrequests/{id}/approveDelete repository:
/repositories/{workspace}/{repo}(caution: irreversible)
Note: Most DELETE endpoints return 204 No Content on success.
The /2.0 prefix is added automatically. API reference: https://developer.atlassian.com/cloud/bitbucket/rest/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The Bitbucket API endpoint path (without base URL). Must start with "/". Examples: "/workspaces", "/repositories/{workspace}/{repo_slug}", "/repositories/{workspace}/{repo_slug}/pullrequests/{id}" | |
| queryParams | No | Optional query parameters as key-value pairs. Examples: {"pagelen": "25", "page": "2", "q": "state=\"OPEN\"", "fields": "values.title,values.state"} | |
| jq | No | JMESPath expression to filter/transform the response. IMPORTANT: Always use this to extract only needed fields and reduce token costs. Examples: "values[*].{name: name, slug: slug}" (extract specific fields), "values[0]" (first result), "values[*].name" (names only). See https://jmespath.org | |
| outputFormat | No | Output format: "toon" (default, 30-60% fewer tokens) or "json". TOON is optimized for LLMs with tabular arrays and minimal syntax. |