eos icon indicating copy to clipboard operation
eos copied to clipboard

How to delete a contract corresponding to the account

Open amActiveHello opened this issue 8 years ago • 5 comments

image now, i want to delete a contract corresponding to the account,what should I do?

amActiveHello avatar Aug 08 '18 08:08 amActiveHello

There's no way to delete the contract. However you can upload a smaller one to get some RAM back.

taokayan avatar Aug 08 '18 10:08 taokayan

You can also push a setcode transaction with an empty setcode.code.

heifner avatar Aug 08 '18 13:08 heifner

ok, this is a good solution,thank you。

amActiveHello avatar Aug 08 '18 14:08 amActiveHello

thanks @heifner for your answer

taokayan avatar Aug 09 '18 01:08 taokayan

At one point I thought we had the ability to do that by passing 'null' to cleos set code.

heifner avatar Aug 09 '18 02:08 heifner