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/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 'Drupal\Core\Config\PreExistingConfigException' 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?
The easiest way to do this at the moment is to use drush php (or core-cli) to open an interactive session.

Then use:

Drupal::configFactory()-&gt;getEditable('system.menu.devel')-&gt;delete();


This functionality will be added into Drupal console as well.