deleteFile method

void deleteFile(
  1. String filename
)

Deletes the file with filename from the vault.

Does not require the vault to be unlocked.

Implementation

void deleteFile(String filename) {
  final file = location.file(filename);
  if (!file.existsSync()) {
    throw '${file.path} does not exist in vault';
  }
  file.deleteSync();
  _cache.remove(filename);
}