Timothy Escopete

How to remove invalid entries in vagrant global-status

You may at one point deleted a vagrant directory, accidentally. Perhaps you had that project, finished, and wasn’t able to have it up for too long. This will make your vagrant virtual machine as an orphaned VM. So you went ahead and opened your vagrant’s default provider, e.g., Virtualbox, and delete these VMs. What you did not realise is that, the vagrant entry is still there.

To check all list of vagrant instances, execute vagrant global-status in your terminal. Check all instances against the one listed in your provider.

To Remove

vagrant global-status --prune

Works in

  1. Linux/Unix systems
  2. OSX
  3. Windows using Cygwin (not tested)