Groups
removeCids
Remove CIDs from a Group
Usage
import { PinataSDK } from "pinata-web3";
const pinata = new PinataSDK({
pinataJwt: process.env.PINATA_JWT!,
pinataGateway: "example-gateway.mypinata.cloud",
});
const group = await pinata.groups.removeCids({
groupId: "3778c10d-452e-4def-8299-ee6bc548bdb0",
cids: ["QmVLwvmGehsrNEvhcCnnsw5RQNseohgEkFNN1848zNzdng"],
});
Returns
OK
Parameters
groupId
- Type:
string
ID of the target Group to remove files from
const group = await pinata.groups.removeCids({
groupId: "3778c10d-452e-4def-8299-ee6bc548bdb0",
});
cids
- Type:
string[]
An array of CIDs as strings that you want to remove from the group
const group = await pinata.groups.removeCids({
cids: [
"QmVLwvmGehsrNEvhcCnnsw5RQNseohgEkFNN1848zNzdng",
"bafkreih5aznjvttude6c3wbvqeebb6rlx5wkbzyppv7garjiubll2ceym4"
],
});