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