function drush_config_delete

master config.drush.inc drush_config_delete($config_name)

Config delete command callback.

Parameters

$config_name: The config name.

File

commands/core/config.drush.inc, line 274
Provides Configuration Management commands.

Code

function drush_config_delete($config_name) {
  $config =\Drupal::service('config.factory')->getEditable($config_name);
  if ($config->isNew()) {
    return drush_set_error('DRUSH_CONFIG_ERROR', 'Configuration name not recognized. Use config-list to see all names.');
  }
  else {
    $config->delete();
  }
}