LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

vagrant-destroy

Delete Vagrant virtual machines

TLDR

Destroy VM
$ vagrant destroy
copy
Force destroy without confirmation
$ vagrant destroy -f
copy
Destroy specific VM
$ vagrant destroy [name]
copy
Gracefully shut down before destroying
$ vagrant destroy --graceful
copy

SYNOPSIS

vagrant destroy [options] [name]

DESCRIPTION

vagrant destroy stops and deletes all resources for a Vagrant machine. Removes the virtual machine and associated storage. The Vagrantfile and provisioning remain intact.

PARAMETERS

-f, --force

Destroy without confirmation prompt.
-g, --graceful
Gracefully shut down the machine before destroying it.
--[no-]parallel
Enable or disable parallel destruction of multiple machines. Enabled by default if the provider supports it.

CAVEATS

This permanently destroys VM data. Shared folders and host files are not affected. The destroy command does not remove the box that was downloaded during `vagrant up`. Use `vagrant box remove` to reclaim that disk space.

SEE ALSO

Copied to clipboard
Kai