How to remove missed module
Probably you got error/warning The following module is missing from the file system, No such folder/file
To get list of installed modules
drush pm-list
Drupal 7 using Drush:
drush sql-qu
ery "DELETE from system where name = 'old_module1' AND type = 'module';"
Once done clear cache:
drush cc all
Drupal 8 using Drush:
drush sql-query "DELETE FROM key_value WHERE collection='system.schema'
… Read the rest