delete_pipeline_variable
Remove a pipeline variable from a Bitbucket repository to manage CI/CD configuration and eliminate unused or sensitive environment settings.
Instructions
Delete a pipeline variable.
Args:
repo_slug: Repository slug
variable_uuid: Variable UUID (from list_pipeline_variables)
Returns:
Confirmation of deletion
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| variable_uuid | Yes |
Implementation Reference
- src/server.py:587-603 (handler)MCP tool handler for delete_pipeline_variable. Calls the BitbucketClient method to perform the deletion and returns confirmation.@mcp.tool() @handle_bitbucket_error @formatted def delete_pipeline_variable(repo_slug: str, variable_uuid: str) -> dict: """Delete a pipeline variable. Args: repo_slug: Repository slug variable_uuid: Variable UUID (from list_pipeline_variables) Returns: Confirmation of deletion """ client = get_client() client.delete_pipeline_variable(repo_slug, variable_uuid) return {}
- src/bitbucket_client.py:733-750 (helper)BitbucketClient helper method that performs the actual DELETE API request to remove the pipeline variable.def delete_pipeline_variable( self, repo_slug: str, variable_uuid: str ) -> bool: """Delete a pipeline variable. Args: repo_slug: Repository slug variable_uuid: Variable UUID Returns: True if deleted successfully """ variable_uuid = ensure_uuid_braces(variable_uuid) self._request( "DELETE", self._repo_path(repo_slug, "pipelines_config", "variables", variable_uuid), ) return True