deleteAllResources method

Future deleteAllResources(
  1. String? password
)

Deletes all resources, including historical versions

Implementation

Future deleteAllResources(String? password) async {
  final resourceTypes = await _getResourceTypes(password);

  for (var type in resourceTypes) {
    _setStoreType(type);
    await _resourceStore.delete(await _db(password));
  }

  await _history.delete(await _db(password));
  await _removeResourceTypes(password, resourceTypes);
}