delete method

Future<void> delete()

Delete this store

This will remove all traces of this store from the user's device. Use with caution!

Does nothing if the store does not already exist.

Implementation

Future<void> delete() async {
  if (!ready) return;

  final store = _registry.unregister(_id);
  if (store?.isOpen ?? false) await store!.close(deleteFromDisk: true);
}