Skip to main content
Glama

deleteSignature

Remove signatures from IPFS content identifiers to manage access permissions and control file visibility on public or private networks.

Instructions

Remove a signature from a CID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoWhether the file is on public or private IPFSpublic
cidYesThe CID to remove the signature from

Implementation Reference

  • The complete implementation of the deleteSignature tool that removes a cryptographic signature from a CID on Pinata IPFS. It accepts network (public/private) and cid parameters, makes a DELETE request to the Pinata API, and returns a success or error response.
    server.tool(
      "deleteSignature",
      "Remove a signature from a CID",
      {
        network: z
          .enum(["public", "private"])
          .default("public")
          .describe("Whether the file is on public or private IPFS"),
        cid: z.string().describe("The CID to remove the signature from"),
      },
      async ({ network, cid }) => {
        try {
          const url = `https://api.pinata.cloud/v3/files/${network}/signature/${cid}`;
    
          const response = await fetch(url, {
            method: "DELETE",
            headers: getHeaders(),
          });
    
          if (!response.ok) {
            throw new Error(
              `Failed to delete signature: ${response.status} ${response.statusText}`
            );
          }
    
          const data = await response.json();
          return {
            content: [
              {
                type: "text",
                text: `✅ Signature deleted successfully\n\n${JSON.stringify(data, null, 2)}`,
              },
            ],
          };
        } catch (error) {
          return errorResponse(error);
        }
      }
    );

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/PinataCloud/pinata-mcp'

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