delete method

void delete()

Deletes configuration file.

Implementation

void delete() {
  try {
    if (configExists()) {
      FileUtils.delete(configPath);
    }
  } catch (e) {
    throw ConfigException('Failed to delete configuration file.', e);
  }
}