Future<bool> deleteFile() async { try { if (logFile != null) { logFile!.delete(); return true; } return false; } catch (e) { return false; } }