Ethereum Stack Exchange is a question and answer site for users of Ethereum, the crypto value and blockchain-based consensus network. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I invalidate a smart contract that has already been deployed? I might want to do so because of business reasons, and maybe beneficial network effects.

Is it possible to invalidate a smart contract?

share|improve this question
up vote 6 down vote accepted

Unless the contract has a function that calls selfdestruct (initial name suicide), the contract will remain on the blockchain.

share|improve this answer
self-destruct can it be called after doing some api calls to a remote server? I am not sure whether remote api calls in allowed in the smart-contract – niksmac Feb 14 at 5:09
There are no remote API calls in Ethereum. See have to use a service like You can call selfdestruct at any time, but you need to explicitly code it into the contract. Otherwise the contract will live forever – Tjaden Hess Feb 14 at 5:53
@TjadenHess thats a valid point, edit the answer and add your point. – niksmac Feb 14 at 9:31

Yes, there is a SUICIDE call which will render the contract inoperable. Notably, calling a deleted account won't result in an error so you would want to also have the application check the state of the account.

In Solidity the SUICIDE EVM call is performed by the selfdestruct function.

share|improve this answer
@niksmac The yellow paper doesn't have "selfdestruct" – that is a solidity function. Not sure editing answer makes sense for a comment. – nessence May 16 at 0:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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