delete method
Deletes the file with the specified filename
.
Returns a Future that completes once the file is deleted.
Implementation
Future<void> delete(String filename) async {
final file = await _file(filename);
if (await file.exists()) {
await file.delete();
}
}