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

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_6.inc, line 158
Specific functions for a drupal 6 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) {
  require_once DRUSH_DRUPAL_CORE . '/includes/install.inc';
  foreach ($modules as $module) {
    drupal_uninstall_module($module);
  }
}