Delete PR Comment
bitbucket_delete_pull_request_commentDelete a pull request comment in Bitbucket Data Center. Use the comment version for optimistic locking; only the author or admin can remove it.
Instructions
Delete a comment from a pull request.
Requires the current comment version number for optimistic locking.
Only the comment author or an admin can delete a comment.
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": {
"project_key": "<project_key>",
"repository_slug": "<repository_slug>",
"pull_request_id": "<pull_request_id>",
"comment_id": "<comment_id>",
"version": "<version>"
},
"name": "bitbucket_delete_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | Current version of the comment (for optimistic locking — get from bitbucket_get_pull_request_comments) | |
| comment_id | Yes | The comment ID to delete | |
| project_key | Yes | The project key | |
| pull_request_id | Yes | The pull request ID number | |
| repository_slug | Yes | The repository slug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |