wipeStorage static method

Future<void> wipeStorage({
  1. List<String>? excludeKeys,
  2. bool andFromBackpack = true,
})

Wipe all storage data. excludeKeys - Optional list of keys to exclude from deletion. andFromBackpack - Whether to also remove data from Backpack (default: true).

Implementation

static Future<void> wipeStorage({
  List<String>? excludeKeys,
  bool andFromBackpack = true,
}) async {
  await NyStorage.deleteAll(
    andFromBackpack: andFromBackpack,
    excludeKeys: excludeKeys,
  );
}