Created
June 21, 2018 11:42
-
-
Save alex-ahumada/7091a22dda1b40210e531309e42905b1 to your computer and use it in GitHub Desktop.
Drupal module manual uninstall
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run with drush eval | |
// Read config | |
$module_data = \Drupal::config('core.extension')->get('module'); | |
// Unset the modules you do not need. | |
unset($module_data[‘your_module_name’]); | |
// Rewrite config | |
\Drupal::configFactory()->getEditable('core.extension')->set('module', $module_data)->save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment