function drush_sitealias_site_clear

7.x sitealias.inc drush_sitealias_site_clear()
master sitealias.inc drush_sitealias_site_clear()

Un-set the currently use'd site alias.

1 call to drush_sitealias_site_clear()
drush_preflight in includes/preflight.inc
During the initialization of Drush, this is the first step where we load our configuration and commandfiles, and select the site we are going to operate on; however, we take no irreversible actions (e.g. site bootstrapping). This allows commands that…

File

includes/sitealias.inc, line 2129
The site alias API.

Code

function drush_sitealias_site_clear() {
  if ($filename = drush_sitealias_get_envar_filename()) {
    return drush_delete_dir($filename);
  }
  return FALSE;
}