unpin

Unpins a file from IPFS.

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>;