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

1 call to drush_module_uninstall()
drush_pm_uninstall in commands/pm/pm.drush.inc
Command callback. Uninstall one or more modules. // TODO: Use drupal_execute on system_modules_uninstall_confirm_form so that input is validated.

File

commands/core/drupal/environment_6.inc, line 108
Specific functions for a drupal 5 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_get_context('DRUSH_DRUPAL_ROOT') . '/includes/install.inc';
  foreach ($modules as $module) {
    drupal_uninstall_module($module);
  }
}