Skip to main content
Glama

delete_blob

Remove a blob from Walrus decentralized storage by specifying its blob ID to manage storage space and data lifecycle.

Instructions

Delete a blob from Walrus storage

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blobIdYesThe blob ID to delete

Implementation Reference

  • The tool handler for 'delete_blob' which parses input arguments using DeleteBlobSchema and delegates to walrusClient.deleteBlob(blobId), 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),
          },
        ],
      };
    }
  • Zod schema for validating the input parameters of the delete_blob tool (requires blobId string).
    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 list_tools response, including 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'],
      },
    },
  • Implementation of deleteBlob method in WalrusClient class. Currently a stub that always returns failure since Walrus does not support manual blob deletion.
    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.',
      };
    }

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/Mr-Sunglasses/walrus-mcp'

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