removeFile static method

Future<void> removeFile(
  1. String path
)

Remove file via path

Implementation

static Future<void> removeFile(String path) async {
  final fileToRemove = join(Directory.current.path, path);
  print(grey('\tRemoving: $fileToRemove'));

  await File(fileToRemove).delete();
}