Data
unpin
Unpin an array of files from your account
Usage
import { PinataSDK } from "pinata-web3";
const pinata = new PinataSDK({
pinataJwt: process.env.PINATA_JWT!,
pinataGateway: "example-gateway.mypinata.cloud",
});
const unpin = await pinata.unpin([
"bafkreih5aznjvttude6c3wbvqeebb6rlx5wkbzyppv7garjiubll2ceym4"
])
Returns
type UnpinResponse[] = {
hash: string;
status: string;
};
Parameters
files
- Type:
string[]
An array of CIDs you want to unpin
const unpin = await pinata
.unpin([
"bafkreih5aznjvttude6c3wbvqeebb6rlx5wkbzyppv7garjiubll2ceym4",
"QmVLwvmGehsrNEvhcCnnsw5RQNseohgEkFNN1848zNzdng"
])