deleteFile static method

Future<void> deleteFile(
  1. String filename, {
  2. bool recursive = false,
})

Implementation

static Future<void> deleteFile(String filename, {bool recursive = false}) async {
  final file = await getFile(filename);
  await file.delete(recursive: recursive);
}