How to remove Vagrant box


# confirm registered boxes
$ vagrant box list

In my environment, I got this result.
$ vagrant box list
miya0001/vccw (virtualbox, 2.14.0)
miya0001/vccw (virtualbox, 2.8.2) 

Then in order to remove specific box, we can run this command.
# Specify box name for the option
$ vagrant box remove miya0001/vccw
But in this case, I had several boxes with the same name but different version so I got this error message.
You requested to remove the box 'miya0001/vccw' 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:

 * 2.14.0
 * 2.8.2

Then I ran this command and removed successfully.
$ vagrant box remove miya0001/vccw --box-version 2.14.0
If you liked this article

Let's subscribe the updates of Scuti!
Share on Google Plus

About Tomohide Kakeya

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 Comments:

Post a Comment