clearTableSnapshot method

  1. @override
Future<void> clearTableSnapshot(
  1. String tableName
)
override

Implementation

@override
Future<void> clearTableSnapshot(String tableName) async {
  await _tracked(() async {
    await _locks.getTableLock(tableName).synchronized(() async {
      final file = _tableFile(tableName);
      if (await file.exists()) {
        await file.delete();
      }
      await _fileStore.cleanupBackup(file);
    });
  });
}