function drush_module_uninstall

8.0.x environment_7.inc drush_module_uninstall($modules)
8.0.x environment_6.inc drush_module_uninstall($modules)
8.0.x environment.inc drush_module_uninstall($modules)
6.x environment_6.inc drush_module_uninstall($modules)
6.x environment.inc drush_module_uninstall($modules)
6.x environment_7.inc drush_module_uninstall($modules)
7.x environment_7.inc drush_module_uninstall($modules)
7.x environment_6.inc drush_module_uninstall($modules)
7.x environment.inc drush_module_uninstall($modules)
3.x environment_7.inc drush_module_uninstall($modules)
3.x environment_6.inc drush_module_uninstall($modules)
3.x environment_5.inc drush_module_uninstall($modules)
4.x environment_6.inc drush_module_uninstall($modules)
4.x environment_5.inc drush_module_uninstall($modules)
4.x environment.inc drush_module_uninstall($modules)
5.x environment_6.inc drush_module_uninstall($modules)
5.x environment.inc drush_module_uninstall($modules)
master environment_7.inc drush_module_uninstall($modules)
master environment.inc drush_module_uninstall($modules)

Uninstall a list of modules.

Parameters

$modules: Array of module names

See also

\Drupal\Core\Extension\ModuleInstallerInterface::uninstall()

2 calls to drush_module_uninstall()
_drush_pm_uninstall in commands/core/drupal/pm_8.inc
Command callback. Uninstall one or more extensions.
_drush_pm_uninstall in commands/core/drupal/pm.inc
Command callback. Uninstall one or more modules.

File

commands/core/drupal/environment.inc, line 226
Specific functions for a drupal 8+ environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal Drush is called from.

Code

function drush_module_uninstall($modules) {
  \Drupal::service('module_installer')->uninstall($modules);
  // Our logger got blown away during the container rebuild above.
  $boot = \Drush::bootstrapManager()->bootstrap();
  $boot->add_logger();
}