What is Self-Destruct in Blockchain ?
It is a function provided on Ethereum network where in selfdestruct smart contract when triggered, destroys the contract. It is useful in cases of attacks, where self-destruct function removes smart contract from Ethereum and transfers Ether to the owner’s address. Majority of developers use self-destruct function to deploy an updated contract after destroying the old contract.