delete_blob
Remove a blob from Walrus decentralized storage by specifying its ID. This tool supports efficient data management and storage optimization on the blockchain-verified Sui network.
Instructions
Delete a blob from Walrus storage
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blobId | Yes | The blob ID to delete |
Implementation Reference
- src/index.ts:179-189 (handler)MCP tool handler for 'delete_blob' that validates input with DeleteBlobSchema and delegates to walrusClient.deleteBlob, returning the result as JSON text.case 'delete_blob': { const { blobId } = DeleteBlobSchema.parse(args); const result = await walrusClient.deleteBlob(blobId); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], };
- src/index.ts:43-45 (schema)Zod input schema for the delete_blob tool, defining the expected 'blobId' parameter.const DeleteBlobSchema = z.object({ blobId: z.string().describe('The blob ID to delete'), });
- src/index.ts:102-115 (registration)Registration of the 'delete_blob' tool in the ListToolsRequestHandler, providing name, description, and input schema.{ name: 'delete_blob', description: 'Delete a blob from Walrus storage', inputSchema: { type: 'object', properties: { blobId: { type: 'string', description: 'The blob ID to delete', }, }, required: ['blobId'], }, },
- src/walrus-client.ts:161-167 (helper)WalrusClient.deleteBlob method called by the tool handler. Currently returns a message explaining that manual deletion is not supported in Walrus; blobs expire automatically.async deleteBlob(blobId: string): Promise<{ success: boolean; message: string }> { // Note: Walrus blobs cannot be deleted once stored - they expire based on their epoch settings return { success: false, message: 'Walrus blobs cannot be manually deleted. They will expire automatically based on their storage epochs.', }; }