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

12/08/2018


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

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 (field.storage.bloom_stem.bs_twitter_ac) 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?

قالب وردپرس