Skip to main content

Remove - Uninstall a deleted module from drupal registry

Remove - Uninstall a deleted module from drupal registry

admin

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

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
The website encountered an unexpected error. Please try again later.