4

If I plan to have a develop on DApp, how can I retain control over it. Either for doing further enhancements or bug fixes. Can I able to delete any abandoned contracts?

Mikko Ohtamaa
  • 22,269
  • 6
  • 62
  • 127
eth.dev
  • 239
  • 2
  • 12

1 Answers1

4

You can delete abandoned contracts. Have a look at the greeter contract.

/* Function to recover the funds on the contract */
function kill() { if (msg.sender == owner) selfdestruct(owner); }

Contracts have a selfdestruct() method that allows an account to retrieve its funds.

Sebi
  • 5,294
  • 6
  • 27
  • 52