holepunchto / hyperdrive

Hyperdrive is a secure, real time distributed file system
Apache License 2.0
1.86k stars 134 forks source link

added destroy method #268

Closed RangerMauve closed 4 years ago

RangerMauve commented 4 years ago

This adds a destroy method to hyperdrive which deletes its underlying data.

Same as the method in hypercore and corestore.

pfrazee commented 4 years ago

Does this destroy just the archive's data or all of corestore's data?

RangerMauve commented 4 years ago

@pfrazee Depends on whether the archive is using a namespace.

If it's using a namespace, then only the cores that it's used will be destroyed. If it's not using a namespace and is the "root" archive, then everything will be destroyed.

RangerMauve commented 4 years ago

Closing in favour of #271