Skip to main content
Glama

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
NameRequiredDescriptionDefault
repo_slugYes

Implementation Reference

  • 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 {}
  • 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JaviMaligno/mcp-server-bitbucket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server