deleteFile static method

Future<bool> deleteFile(
  1. String filepath
)

Implementation

static Future<bool> deleteFile(String filepath) async {
  try {
    // qualify file name
    filepath = filepath;

    // delete the file
    if (_fileExists(filepath)) File(filepath).delete();
    return true;
  } catch (e) {
    Log().exception(e,
        caller: 'platform.vm.dart => bool deleteFile($filepath)');
    return false;
  }
}