Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

How to delete a contract corresponding to the account #5108

Closed
amActiveHello opened this issue Aug 8, 2018 · 5 comments
Closed

How to delete a contract corresponding to the account #5108

amActiveHello opened this issue Aug 8, 2018 · 5 comments

Comments

@amActiveHello
Copy link

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

@taokayan
Copy link
Contributor

taokayan commented Aug 8, 2018

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

@taokayan taokayan closed this as completed Aug 8, 2018
@heifner
Copy link
Contributor

heifner commented Aug 8, 2018

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

@amActiveHello
Copy link
Author

ok, this is a good solution,thank you。

@taokayan
Copy link
Contributor

taokayan commented Aug 9, 2018

thanks @heifner for your answer

@heifner
Copy link
Contributor

heifner commented Aug 9, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants