Skip to content

Instantly share code, notes, and snippets.

@alex-ahumada
Created June 21, 2018 11:42
Show Gist options
  • Save alex-ahumada/7091a22dda1b40210e531309e42905b1 to your computer and use it in GitHub Desktop.
Save alex-ahumada/7091a22dda1b40210e531309e42905b1 to your computer and use it in GitHub Desktop.
Drupal module manual uninstall
// 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