'Deletion in a blockchain network

I was working on a crud D-app, coding in solidity. I am unable to figure out how does deletion and updation work on the blockchain network?



Solution 1:[1]

There is none. You can only add new transactions. You have to add a new transaction saying something was deleted or updated, and then, whoever is displaying the data needs to see the new transaction and stop displaying the data.

If you are writing a smart contract, you can delete or update data in storage, but other people can still see that data since it's in the previous transactions - there is no privacy.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user253751