Repository is archived
No commit activity in last 3 years
No release in over 3 years
This plugin enables you to remove all but the latest installed boxes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.10
~> 10.0
 Project Readme

The code for this plugin has been merged into Vagrant and is released in 1.9.0. The command is vagrant box prune. See the pull request.

Vagrant remove old box versions plugin

This plugin enables you to automatically remove old vagrant boxes from you host. Just run vagrant remove-old-versions and it will check your downloaded boxes and remove every box that is not the lastest downloaded version.

Internally it uses vagrant box list to get a list of boxes, and vagrant box remove --box-version xxx --provider xxx so it still has all safeguards you expect from vagrant.

Gem Version Gem

Installation

vagrant plugin install vagrant-remove-old-box-versions

Usage

Usage: vagrant remove-old-versions [options]

Options:

    -p, --provider PROVIDER          The specific provider type for the boxes to destroy.
    -n, --dry-run                    Only print the boxes that would be removed.
        --name NAME                  The specific box name to destroy.
    -f, --force                      Destroy without confirmation even when box is in use.

Contributing

This plugin is built and maintained by Björn Brala Bug reports and pull requests are welcome on GitHub at swisnl/vagrant-remove-old-box-versions.

License

The gem is available as open source under the terms of the MIT License.

Changelog

[1.2.0] 2016-12-09

  • This plugin was merged into Vagrant. Added deprecation message.

[1.1.0] 2016-03-16

  • ---dry-run and --name option added by @danielpanteleit

[1.0.0] 2016-01-13

  • Initial release.