deleteFile function

bool deleteFile(
  1. String filePath
)

Delete file

Implementation

bool deleteFile(String filePath) {
  try {
    final file = File(filePath);
    file.deleteSync(recursive: true);
    return true;
  } catch (e) {
    return false;
  }
}