delete method

Future<void> delete(
  1. String checksum
)

Deletes the path at the provided checksum from the database.

Implementation

Future<void> delete(String checksum) async {
  _cache.remove(checksum);

  await safe((db) async {
    final stmt = db.delete(db.downloads)
      ..where((e) => e.checksum.equals(checksum));
    await stmt.go();
  });
}