deleteBackup static method

Future<bool> deleteBackup()

Delete the backup file Returns true if deletion was successful

Implementation

static Future<bool> deleteBackup() async {
  try {
    final backupFile = File(FileConfig.backupFile);

    if (backupFile.existsSync()) {
      await backupFile.delete();
    }

    return true;
  } catch (e) {
    return false;
  }
}