Remove drupal 9 extensions from database

 drush eval "\$module_data = \Drupal::config('core.extension')->get('module'); unset(\$module_data['MODULE_NAME']); \Drupal::configFactory()->getEditable('core.extension')->set('module', \$module_data)->save();"


If you get any more warning like below: 



Then run this commands too:

drush php-eval "\Drupal::keyValue('system.schema')->delete('my_already_removed_module');"
drush php-eval "\Drupal::keyValue('system.schema')->delete('update_test_0');"



Source:https://drupal.stackexchange.com/questions/72927/manually-disable-a-module


Contribution from: https://eduvai.com

Comments

Popular posts from this blog

Enable Theme Debug in Drupal 9

PHP redirect from http to https and www to non-www in Drupal 9