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
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Whether the group is in public or private IPFS | public |
| id | Yes | The 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); } } );