Removing list of vms in vagrant cache

user710587 picture user710587 · Jun 26, 2014 · Viewed 46.9k times · Source

I'm not looking for this answer, because my question is different.

When I type vagrant global-status I get a list of vms, but some of those directories and VMs have been deleted along with the Vagrantfiles.

But when i type vagrant destroy [machineid], I get the following error, which I am looking to resolve. Please advise.

The working directory for Vagrant doesn't exist! This is the
specified working directory:

/Users/steven/projects/php/vagrant-laravel

Answer

Emyl picture Emyl · Jun 27, 2014

You should use the following command to remove invalid entries from the global index:

vagrant global-status --prune