How did we uninstall / disable troublesome module in Drupal 8?
Most of the times, module can be uninstalled from the Module Uninstall page (/admin/modules/uninstall) of Drupal 8. We can also use following drush command to uninstall a module, drush pm-uninstall module-name But as we know, contrib / custom modules are maturing day by day, sometimes we see D7 specific code in uninstall hooks which cause issues during uninstallation of module. We were having the similar issue. We were not able to uninstall the module from Drush or from Module Uninstall interface as it was throwing errors due to code in hook_uninstall(). The 'acquia_search_multi_subs' module was giving error in our case during uninstall and data in 'config' table looks like below, drush sqlq "select * from config where name='core.extension'" core . extension a : 2 :{ s : 6 : "module" ; a : 74 :{ s : 16 : "acquia_connector" ; i : 0 ; s : 13 : "acquia_search" ; i : 0 ; s : 24 : "acquia_search_multi_subs...