unpin

Unpins a file from IPFS. For security purposes, this method requires a secret key to be set in the ThirdwebClient instance.

Example

import { unpin } from "thirdweb";
const result = await unpin({
client: thirdwebClient,
cid: "QmTzQ1N1z1Q1N1z1Q1N1z1Q1N1z1Q1N1z1Q1N1z1Q1N1z1",
});
function unpin(options: UnpinOptions): Promise<void>;

Parameters

The options for unpinning the file.

Type

let options: { cid: string; client: ThirdwebClient };

Returns

let returnType: Promise<void>;