deleteIdbFile function

Future<void> deleteIdbFile(
  1. String path, {
  2. String databaseName = kIdbDatabaseName,
  3. String storeName = kIdbStoreName,
})

Deletes every record belonging to path from the shared store.

Implementation

Future<void> deleteIdbFile(
  String path, {
  String databaseName = kIdbDatabaseName,
  String storeName = kIdbStoreName,
}) async {
  final normalized = normalizeLogicalPath(path);
  final store = await _IdbStore.open(databaseName, storeName);
  await store.deleteKeys(idbFileKey(normalized), path: normalized);
}