src/Robo/Commands/Vm/VmCommand.php
public function nuke() {
    $confirm = $this->confirm("This will destroy your VM, and delete all associated configuration. Continue?");
    if ($confirm) {
      $this->taskExecStack()
        ->exec("vagrant destroy")
        ->dir($this->getConfigValue('repo.root'))
        ->printOutput(TRUE)
        ->stopOnFail()
        ->run();
      $this->taskFilesystemStack()
        ->remove($this->projectDrupalVmConfigFile)
        ->remove($this->projectDrupalVmVagrantfile)
        // @todo More surgically remove drush.default_alias and drush.aliases.local values from this file
        // rather than overwriting it.
        ->remove($this->getConfigValue('blt.config-files.local'))
        ->run();
      $this->say("Your Drupal VM instance has been obliterated.");
      $this->say("Please run `blt vm` to create a new one.");
    }
  }
public function nuke() {
    $confirm = $this->confirm("This will destroy your VM, and delete all associated configuration. Continue?");
    if ($confirm) {
      $this->taskExecStack()
        ->exec("vagrant destroy")
        ->dir($this->getConfigValue('repo.root'))
        ->printOutput(TRUE)
        ->stopOnFail()
        ->run();
      $this->taskFilesystemStack()
        ->remove($this->projectDrupalVmConfigFile)
        ->remove($this->projectDrupalVmVagrantfile)
        // @todo More surgically remove drush.default_alias and drush.aliases.local values from this file
        // rather than overwriting it.
        ->remove($this->getConfigValue('blt.config-files.local'))
        ->run();
      $this->say("Your Drupal VM instance has been obliterated.");
      $this->say("Please run `blt vm` to create a new one.");
    }
  }
public function nuke ( ) { $ confirm = $ this -> confirm ( "This will destroy your VM, and delete all associated configuration. Continue?" ) ; if ( $ confirm ) { $ this -> taskExecStack ( ) -> exec ( "vagrant destroy" ) -> dir ( $ this -> getConfigValue ( 'repo.root' ) ) -> printOutput ( TRUE ) -> stopOnFail ( ) -> run ( ) ; $ this -> taskFilesystemStack ( ) -> remove ( $ this -> projectDrupalVmConfigFile ) -> remove ( $ this -> projectDrupalVmVagrantfile ) // @todo More surgically remove drush.default_alias and drush.aliases.local values from this file // rather than overwriting it. -> remove ( $ this -> getConfigValue ( 'blt.config-files.local' ) ) -> run ( ) ; $ this -> say ( "Your Drupal VM instance has been obliterated." ) ; $ this -> say ( "Please run `blt vm` to create a new one." ) ; } }
Destroys existing VM and all related configuration.

@command recipes:drupalvm:destroy
@aliases rdd vm:nuke
@throws \Exception
Destroys existing VM and all related configuration .