blob_delete
Remove specific files from Azure Blob Storage containers to manage storage space and maintain data organization.
Instructions
Delete a blob from Blob Storage
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_name | Yes | Name of the Blob Storage container | |
| blob_name | Yes | Name of the blob to delete |
Implementation Reference
- mcp_server_azure/azure_server.py:206-211 (handler)The core handler logic for the 'blob_delete' tool. It retrieves the blob client using the provided container and blob names, deletes the blob, and prepares a success response.elif name == "blob_delete": blob_client = blob_service_client.get_blob_client( container=arguments["container_name"], blob=arguments["blob_name"] ) blob_client.delete_blob() response = {"blob_name": arguments["blob_name"], "deleted": True}
- Defines the Tool object for 'blob_delete' with input schema specifying required container_name and blob_name parameters.Tool( name="blob_delete", description="Delete a blob from Blob Storage", inputSchema={ "type": "object", "properties": { "container_name": { "type": "string", "description": "Name of the Blob Storage container", }, "blob_name": { "type": "string", "description": "Name of the blob to delete", }, }, "required": ["container_name", "blob_name"], }, ),
- mcp_server_azure/azure_server.py:172-176 (registration)MCP server registration of tools via @server.list_tools(), which includes 'blob_delete' from get_azure_tools().async def list_tools() -> list[Tool]: """List available Azure tools""" logger.debug("Handling list_tools request") return get_azure_tools() # Use get_azure_tools