delete method

bool delete(
  1. String filename
)

Delete a file, return true if the file exists.

Implementation

bool delete(String filename) {
  final f = File(join(_root.path, filename));
  if (f.existsSync()) {
    f.deleteSync();
    return true;
  }
  return false;
}