This question already has an answer here:
- Upgradeable smart contracts 12 answers
Is it possible to remove or update already deployed contract using web3 or truffle console or geth console?? if we know the contract details like address and ABI array, and we create a object of contract using web3.js
var contractObject = web3.eth.contract(abi).at(contractAddress);
then is it possible to remove this contract from block chain using the object created.
I am curious about,Is there any way to call selfDistruct("address") using web3.js??, I have specified contractObject is the object of contract
can I call
contractObject.selfDistruct("new address to transfer remaining balance")
the question here explains how to update existing contract but I need a way to remove existing contract even if the contract dose not contain seftDistruct() method.