Skip to main content
Glama

deleteGroup

Remove a group from your Pinata account using its unique ID to manage IPFS file organization and storage.

Instructions

Delete a group from your Pinata account by its ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoWhether the group is in public or private IPFSpublic
idYesThe unique ID of the group to delete

Implementation Reference

  • src/index.ts:834-872 (registration)
    Registration and handler for the deleteGroup tool - deletes a group from Pinata account by ID using DELETE request to the API
    server.tool(
      "deleteGroup",
      "Delete a group from your Pinata account by its ID",
      {
        network: z
          .enum(["public", "private"])
          .default("public")
          .describe("Whether the group is in public or private IPFS"),
        id: z.string().describe("The unique ID of the group to delete"),
      },
      async ({ network, id }) => {
        try {
          const url = `https://api.pinata.cloud/v3/groups/${network}/${id}`;
    
          const response = await fetch(url, {
            method: "DELETE",
            headers: getHeaders(),
          });
    
          if (!response.ok) {
            throw new Error(
              `Failed to delete group: ${response.status} ${response.statusText}`
            );
          }
    
          const data = await response.json();
          return {
            content: [
              {
                type: "text",
                text: `✅ Group 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