Mac storage basics · Programming languages and toolchains

How do I remove old Vagrant boxes to free space?

Short answer: List boxes with vagrant box list, drop old versions with vagrant box prune, and delete a box with vagrant box remove; destroy unused machines with vagrant destroy.

Vagrant keeps every base box you've downloaded, and each can be large.

  • vagrant box list shows them.
  • vagrant box prune removes older versions of boxes you still have newer ones of.
  • vagrant box remove followed by a box name deletes one entirely.

Removing a box doesn't delete machines already created from it; destroy those with vagrant destroy in each project folder. The virtual machines themselves live in your virtualisation app — see virtual machine size.

Last reviewed

Also available as Markdown and JSON.