delete_repository
Permanently remove a Bitbucket repository using its slug. This irreversible action deletes all repository data, including code, issues, and pull requests.
Instructions
Delete a Bitbucket repository.
WARNING: This action is irreversible!
Args:
repo_slug: Repository slug to delete
Returns:
Success status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes |
Implementation Reference
- src/server.py:141-158 (handler)MCP tool handler function for 'delete_repository'. Registers the tool via @mcp.tool() decorator and implements the logic by calling BitbucketClient.delete_repository.@mcp.tool() @handle_bitbucket_error @formatted def delete_repository(repo_slug: str) -> dict: """Delete a Bitbucket repository. WARNING: This action is irreversible! Args: repo_slug: Repository slug to delete Returns: Success status """ client = get_client() client.delete_repository(repo_slug) return {}
- src/bitbucket_client.py:330-340 (helper)BitbucketClient helper method that executes the actual DELETE API request to delete the repository.def delete_repository(self, repo_slug: str) -> bool: """Delete a repository. Args: repo_slug: Repository slug Returns: True if deleted successfully """ self._request("DELETE", self._repo_path(repo_slug)) return True