Remove - Uninstall a deleted module from drupal registry | Drupal 8

Remove - Uninstall a deleted module from drupal registry

Submitted by editor on Wed, 04/04/2018 - 10:48
Question

How to uninstall a deleted module manually from drupal registry, to avoid warning messages ?
How to fix "The following module is missing from the file system..." warning messages ?

When you remove a module manually or re import a database, some times you have a message like "The following module is missing from the file system...". this is due to deleted modules.

To uninstall the module properly via drush:
1. Remove from DB:
    drush sql-query "DELETE FROM key_value WHERE collection='system.schema' AND name='module_name';"
  Example : module devel
    drush sql-query "DELETE FROM key_value WHERE collection='system.schema' AND name='devel';"
2. Clear cache.
    drush cr

Fore more info see : https://www.drupal.org/node/2487215

Add new comment