How do I remove a configuration object from the active configuration?


I’m writing a custom module for Drupal 8. It defines a field storage configuration object, in a file called modules/mymod/config/install/

The problem is that this is not removed when I uninstall the module; it is apparently left behind because, when I re-install the module, I get a crash.

drush -y pm-uninstall mymod
drush cr
drush -y en mymod

exception ‘DrupalCoreConfigPreExistingConfigException’ with message ‘Configuration objects ( provided by mymod already exist in active configuration’

So it seems I need to some how manually remove this configuration object. Do I need to provide some more code that deletes it when the module is uninstalled?

قالب وردپرس