Does revoking read permission on off-chain stream item delete the off-chain content from the node?

+1 vote
asked Jan 9, 2022 by anonymous

1 Answer

0 votes
No, it does not, but it prevents any additional items (whether new or old) being retrieved by the node. We don't delete it because this would be fake security – the end-user application could already have copied the data elsewhere.
answered Jan 9, 2022 by MultiChain
Actually I am thinking along the line of off-chain records archival and how to free up of long term storage space if records are no longer relevant for audit. To remove the unused off-chain records, is it just a matter of deleting the file directly from the off-chain folder?
In MultiChain Enterprise, you can use this command to purge all of the items retrieved from a stream without unsubscribing: purgestreamitems <stream> all

In either edition, you can use the unsubscribe command with purge=true
Note that if you fully unsubscribe, then resubscribing will require a blockchain rescan which can be slow.
I get it now. Thanks for the answers. It seems like one really need to deep dive and think through the specifics in order to appreciate the features in the enterprise version.
No problem, glad that's solved.