How to delete an item or key from a stream?

+1 vote
Simply wanted to know how to delete an item that was published by accident to a key and also how to delete a whole key from the stream.

Thanks in advance.
asked Jun 7, 2017 by FerrisK9

1 Answer

0 votes

Blockchains by their nature are append-only records, so you cannot delete an item or a key from a stream – that would defeat the whole point. However you can write an additional item with the same key, which your application defines as having the meaning "delete this key", perhaps a single byte with hexadecimal 00. It's up to your application to interpret this information correctly when presenting information to the user.

answered Jun 8, 2017 by MultiChain
...