» Destroy
Command: vagrant destroy [name|id]
This command stops the running machine Vagrant is managing anddestroys all resources that were created during the machine creation process.After running this command, your computer should be left at a clean state,as if you never created the guest machine in the first place.
For linux-based guests, Vagrant uses the shutdown
command to gracefullyterminate the machine. Due to the varying nature of operating systems, theshutdown
command may exist at many different locations in the guest's $PATH
.It is the guest machine's responsibility to properly populate the $PATH
withdirectory containing the shutdown
command.
» Options
-f
or—force
- Do not ask for confirmation before destroying.—[no-]parallel
- Destroys multiple machines in parallel if the providersupports it. Please consult the provider documentation to see if this featureis supported.
The destroy
command does not remove a box that may have been installed onyour computer during vagrant up
. Thus, even if you run vagrant destroy
,the box installed in the system will still be present on the hard drive. Toreturn your computer to the state as it was before vagrant up
command, youneed to use vagrant box remove
.
For more information, read about thevagrant box remove
command.