Files
deleteSwap
Remove a CID swap for Hot Swaps plugin
Usage
import { PinataSDK } from "pinata";
const pinata = new PinataSDK({
pinataJwt: process.env.PINATA_JWT!,
pinataGateway: "example-gateway.mypinata.cloud",
});
const deleteSwap = await pinata.files.deleteSwap(
"bafkreibbvdqf5ekc2crouowv7vtjbcmbjoiysegslmmqc6jrxbaa43xske"
)
Returns
OK
Parameters
Pass in the required parameters below to remove a CID swap
cid
- Type:
string
This would be the original CID that was swapped
const deleteSwap = await pinata.files.deleteSwap(
"bafkreibbvdqf5ekc2crouowv7vtjbcmbjoiysegslmmqc6jrxbaa43xske"
)