dwn-sdk-js icon indicating copy to clipboard operation
dwn-sdk-js copied to clipboard

Fully delete / wipe remote DWN

Open bnonni opened this issue 5 months ago • 5 comments

It would be nice, especially for development puposes, to have an easy way to wipe the data store of a remote dwn. @csuwildcat said "We need a command like that, but don't have it." Consider this issue as the starting point for discussion on how to achieve this behavior. My initial idea is something simple: Create a function that proxies the functionality of web5.dwn.records.query and runs record.delete on each returned record. Same goes for web5.dwn.protocols.query but instead of .delete do a web5.dwn.protocols.configure({}); this could be exposed in @web5/api as web5.dwn.wipe. Open to other ideas.

bnonni avatar Sep 20 '24 21:09 bnonni