delete_repository
Remove a Bitbucket Cloud repository permanently. Specify workspace and repository slugs to delete repositories. This action cannot be undone.
Instructions
Delete a repository. This action is irreversible.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug |
Implementation Reference
- src/tools/index.ts:914-918 (handler)The handler case in ToolHandler.handleTool for 'delete_repository', which validates input with Zod schema, calls RepositoriesAPI.delete, and returns a success message.case 'delete_repository': { const params = toolSchemas.delete_repository.parse(args); await this.repos.delete(params); return { success: true, message: 'Repository deleted' }; }
- src/tools/index.ts:40-43 (schema)Zod input schema definition for the delete_repository tool parameters.delete_repository: z.object({ workspace: z.string().describe('The workspace slug'), repo_slug: z.string().describe('The repository slug'), }),
- src/tools/index.ts:361-372 (registration)Tool registration entry in toolDefinitions array, defining name, description, and JSON schema for MCP compatibility.{ name: 'delete_repository', description: 'Delete a repository. This action is irreversible.', inputSchema: { type: 'object' as const, properties: { workspace: { type: 'string', description: 'The workspace slug' }, repo_slug: { type: 'string', description: 'The repository slug' }, }, required: ['workspace', 'repo_slug'], }, },