Remove default configuration on uninstalling module During install we create content types, field storages and vocabularies. When uninstalling none of these things are uninstalled.

I know that we can set all the configuration to have the module as dependency, but that is tedious to do; is there a better way to let Drupal uninstall all the configuration on the module in the config/install folder?
I know that we can set all the configuration to have the module as dependency, but that is tedious to do; is there a better way to let Drupal uninstall all the configuration on the module in the config/install folder?


Not really. Deleting the configuration is just as tedious, as you need to know what's yours. you could solve it using a naming pattern and list all node types, fields, views, .. starting with yourmodule_ I guess.

There's been some discussion to automatically add the module providing the configuration as an enforced dependency, but that's actually also not always what you want.