Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Pinata SDK files.private.delete unpins one or more private IPFS files by ID and frees up account storage. Requires the org:files:write permission.
import { PinataSDK } from "pinata"; const pinata = new PinataSDK({ pinataJwt: process.env.PINATA_JWT!, pinataGateway: "example-gateway.mypinata.cloud", }); const deletedFiles = await pinata.files.private.delete([ "4ad9d3d1-4ab4-464c-a42a-3027fc39a546" ])
type DeleteResponse[] = { id: string; status: string; };
string[]
const unpin = await pinata.files.private .delete([ "5e3011c0-f242-46b8-ad8d-2141bba23096", "e4cb100d-9065-4a08-80a3-f195f35de336" ])