Skip to content

Instantly share code, notes, and snippets.

@rbrum
Created April 12, 2019 15:53
Show Gist options
  • Save rbrum/97dec5e1737fe988f7b02d9e1d57673e to your computer and use it in GitHub Desktop.
Save rbrum/97dec5e1737fe988f7b02d9e1d57673e to your computer and use it in GitHub Desktop.
Eliminate Module

Run the following to get rid of a module if you changed the branch without first uninstalling the module properly:

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();'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment