delete method

Future<void> delete()

Implementation

Future<void> delete() async {
  final db = await _openDb();
  final txn = db.transaction(_objectStoreName, idbModeReadWrite);
  final store = txn.objectStore(_objectStoreName);
  await store.delete(_filePath);
  await txn.completed;
}