Skip to content

config:delete

Delete a configuration key, or a whole object.

Examples

  • drush config:delete system.site. Delete the the system.site config object.
  • drush config:delete system.site page.front. Delete the 'page.front' key from the system.site object.

Arguments

  • --config_name. The config object name, for example "system.site".
  • [--key]. A config key to clear, for example "page.front".

Aliases

  • cdel
  • config-delete

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.