In this tutorial you will learn how to use the Vagrant destroy command and also “vagrant destroy -f”.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# Vagrant destroy command # Open Oracle VM VirtualBox Manager cd ~/vagrant/ubuntu-trusty32/ vagrant up --provider virtualbox tree -h ~/.vagrant.d/ ls -al ~/VirtualBox\ VMs/ # Stop the running machine Vagrant is managing and destroys all resources that were # created during the machine creation process # The vagrant destroy command does not remove a box that may have been installed on your computer during # vagrant up vagrant destroy tree -h ~/.vagrant.d/ ls -al ~/VirtualBox\ VMs/ cd ~/vagrant/ubuntu-precise32/ # -f # Don't ask for confirmation before destroying vagrant destroy -f # Useful links https://docs.vagrantup.com/v2/cli/destroy.html |
Useful links:
https://docs.vagrantup.com/v2/cli/destroy.html