Candy Machine Commands
Withdraw
The mplx cm withdraw command withdraws and deletes a candy machine, recovering any remaining SOL balance and cleaning up the on-chain account. This operation is irreversible and should be used when the candy machine is no longer needed. Already minted NFTs are not affected.
Irreversible
This command is irreversible. Once executed your candy machine is destroyed and can not be recreated.
Usage
# Withdraw candy machine from current directory
mplx cm withdraw
# Withdraw specific candy machine by address
mplx cm withdraw --address <candy_machine_address>
Optional Flags that you can use:
--address: Specify candy machine address directly--force: Danger Skip confirmation prompts (use with extreme caution)
⚠️ Irreversible Operation
- Permanent Deletion: The candy machine account will be permanently deleted
- No Recovery: Cannot be undone or restored
- Data Loss: All on-chain configuration and state will be lost
- Minted NFTs: Existing minted NFTs are not affected
🛡️ Best Practices
Planning:
- Plan withdrawal timing carefully
- Coordinate with team members
Execution:
- Double-check all parameters
- Use devnet for practice
Related Commands
mplx cm fetch- Check status before withdrawalmplx cm create- Create new candy machinesmplx cm validate- Validate before withdrawalsolana balance- Check recovered balance