Destroying A Contract
EVM
Deployed contracts cannot be destroyed unless it contains a function that calls selfdestruct. However, since the Cancun hard fork, a contract can only be destroyed if selfdestruct is called in the same transaction that deploys the contract.
Solana
solana program close $PROGRAM_IDUse this with caution as you can accidentally lock users out of their funds!
Last updated