function drush_sitealias_site_reset

6.x sitealias.drush.inc drush_sitealias_site_reset()
5.x sitealias.drush.inc drush_sitealias_site_reset()

Deletes the file that stores the DRUPAL_SITE variable for persistent site switching.

File

commands/core/sitealias.drush.inc, line 387
Site alias commands.

Code

function drush_sitealias_site_reset() {
  if (($filename = drush_sitealias_get_envar_filename()) && file_exists($filename)) {
    drush_delete_dir($filename);
  }
}