Removing Vagrant Boxes with Multiple Versions

This might save someone a few minutes of thinking.

If you have been using Vagrant/Homestead for a while and have been upgrading the boxes, you could end up with something like this:

C:\>vagrant box list
laravel/homestead (virtualbox, 6.4.0)
laravel/homestead (virtualbox, 7.0.0)
laravel/homestead (virtualbox, 7.1.0)
laravel/homestead (virtualbox, 8.1.0)
laravel/homestead (virtualbox, 8.2.1)

To remove a specific instance (say the 6.4.0 version), this is the command you need:

C:\>vagrant box remove "laravel/homestead" --box-version 6.4.0
Removing box 'laravel/homestead' (v6.4.0) with provider 'virtualbox'...

Note the double-hyphen box-version command line option.


Hi! Did you find this useful or interesting? I have an email list coming soon, but in the meantime, if you ready anything you fancy chatting about, I would love to hear from you. You can contact me here or at stephen ‘at’ logicalmoon.com