dwn-sdk-js
dwn-sdk-js copied to clipboard
Fully delete / wipe remote DWN
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.