Withdrawing a Core Candy Machine
The withdrawing of a Core Candy Machine returns all the on chain storage rent cost of the Candy Machine while subsequently deleting the data and making the Candy Machine unusable.
import { deleteCandyMachine } from '@metaplex-foundation/mpl-core-candy-machine'
import { publicKey } from '@metaplex-foundation/umi'
const candyMachineId = '11111111111111111111111111111111'
await deleteCandyMachine(umi, {
candyMachine: publicKey(candyMachineId),
}).sendAndConfirm(umi)Last updated