I bought some RAM for my contract.

Now I want to uninstall my contract,and unstake the RAM. what should I do ?

Can the RAM be unstaked?


2 Answers 2


Use cleos set contract account directory --clear

  • thanks. don't need directory so can just do "cleos set contract account --clear"
    – n13
    Oct 11, 2022 at 7:48

I don't believe there is an API to unset a contract. You can try to overwrite your current contract (both wasm and abi) with small files to return most of the ram you used up.

  • Not entirely wrong but see correct answer above. Contract and abi are then set to "" (empty string)
    – n13
    Oct 11, 2022 at 7:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.