vagrant/plugins/commands/box/command
Christian Berendt 3f4a372d57 Remove all available versions of a box
This patch introduces a new parameter --all for the remove
command of the box plugin. Setting this parameter will remove
all available versions of a specific box.

Example usage:

```
$ vagrant box list
ubuntu/trusty64 (virtualbox, 20150427.0.0)
ubuntu/trusty64 (virtualbox, 20150430.0.0)
ubuntu/trusty64 (virtualbox, 20150506.0.0)
```

```
$ vagrant box remove ubuntu/trusty64
You requested to remove the box 'ubuntu/trusty64' with provider
'virtualbox'. This box has multiple versions. You must
explicitly specify which version you want to remove with
the `--box-version` flag. The available versions for this
box are:

 * 20150427.0.0
 * 20150430.0.0
 * 20150506.0.0
```

With the --all parameter it is possible to remove all versions at once.

```
$ vagrant box remove --all ubuntu/trusty64
Removing box 'ubuntu/trusty64' (v20150506.0.0) with provider 'virtualbox'...
Removing box 'ubuntu/trusty64' (v20150430.0.0) with provider 'virtualbox'...
Removing box 'ubuntu/trusty64' (v20150427.0.0) with provider 'virtualbox'...
```
2015-11-09 09:32:18 +00:00
..
add.rb Add option to enable trusted HTTP redirects 2015-05-31 09:34:02 -07:00
list.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
outdated.rb clean up usage 2014-02-08 00:20:50 -08:00
remove.rb Remove all available versions of a box 2015-11-09 09:32:18 +00:00
repackage.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
root.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
update.rb commands/box/update: proper provider is updated [GH-4374] 2014-08-29 12:05:44 -07:00