Cleanup old version of installed boxes in Vagrant

I use Vagrant with VVV extensively for setting up local development environments and have a couple of Vagrant boxes setup in my mac.

Recently I was running out of disk space in my Mac which prompted me to look around to see if there are any unnecessary files that can be cleaned up.

This let me to find out that Vagrant stores all versions of boxes that were downloaded even after upgrading them.

You can see the list of boxes that I have accumulated over a span of two years.

After seeing this list I was trying to find a way to cleanup the old version of installed boxes in Vagrant and found the following command.

vagrant box prune

Executing the above command cleaned up all unused old versions of the vagrant boxes and saved me about 20 GB of space.

I am adding this to the periodic list of cleanup commands that I run in my Mac.

Related posts

Tags: , ,

8 Comments so far

Follow up comments through RSS Feed | Post a comment

  • jeffiepriya says:

    Thank you for sharing such a nice and interesting blog with us. Hope it might be much useful for us. keep on updating…!!

  • devops online training says:

    Nice Article. How it help to developer in terms of balance the day to day life.

  • I was running out of disk space on my Mac.

  • There are hundreds of thousands of customers making queries and registering their complaints with the official Apple support number at any given point in time. Why wait for an eternity when we are here to provide fast and reliable Apple support to you?

  • Is your iPhone not working properly? Is it out of warranty period? If yes, there is no need to take your phone to your dealer or wait for help and support from Apple. We provide the highest-quality iPhone support to our customers. No matter what the issue, we will make sure that you can enjoy your iPhone like before.

  • iphone help says:

    We run the most popular tech support agency in the country. We have hundreds of satisfied customers elated with our high-quality iPhone help. Contact us to get in touch with our experienced engineers. They will give authentic resolutions for all your problems related to your iPhone.

  • Are you unable to use one or more features of your iPhone? Do you experience some technical issues with your smartphone? If yes, then there is no need to worry. You can get rid of all such problems with the help of our popular and reliable Apple iPhone support.

  • We are the leading tech support agency operating in the country. We provide fast and genuine iPhone help to our customers. Contact our tech support center irrespective of your location around the country. Our iPhone support number remains open on a 24X7 basis. Talk to our engineer and get a genuine resolution to your problems without any delay from him.

Leave a Reply

Your email address will not be published. Required fields are marked *