Skip to main content

How to Remove Missing or Invalid Module/Theme (Drupal)

Error Message: Currently using Missing or invalid module The following module is marked as installed in the core.extension configuration, but it is missing:

If you accidentally removed the module folder while the module is installed, you can remove the module/theme from the configuration file with a drush command

vendor/bin/drush config:delete core.extension module.<modulename>

In our example, the module tablefield is missing from the configuration file

vendor/bin/drush config:delete core.extension module.tablefield
 

Drupal