Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant box cannot be removed - remove command says it's not found even though list command lists it

Tags:

Hi folks can you advise on why I can't remove any of my boxes, please.

$ vagrant box list
base    (virtualbox)
lucid32 (virtualbox)
$ vagrant box remove lucid32 http://files.vagrantup.com/lucid32.box
Box 'lucid32' could not be found.
$ vagrant box remove base http://files.vagrantup.com/lucid32.box
Box 'base' could not be found.
$ 

Initial setup was this:

vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
vagrant box add base http://files.vagrantup.com/lucid32.box

Update In my original question I wrote the following: The documentation appears to be very basic and doesn't cover troubleshooting. I looked here:... etc. I was wrong to say that, it does. Fellow SO user @cmur2 answered pointing out my errors and this was accepted (see their answer below). They provided the fresh pair of eyes I didn't have here. Thanks to them. This question is trivial but I do still feel it is worth retaining in case anyone else has the same block that I had.

Running this on MacOS 10.7.5, Vagrant version 1.1.5 (latest from http://downloads.vagrantup.com/ )

Reason for removal is that I want to start again fresh, I added too many boxes. I should be able to remove all of the boxes I believe.

like image 733
therobyouknow Avatar asked Apr 13 '13 23:04

therobyouknow


1 Answers

The list command shows the provider in brackets, a provider is something like virtualbox or vmware not the URL you got the box from and you have to specify the provider for disambiguation during remove, e.g.:

vagrant box remove lucid32 virtualbox
like image 126
cmur2 Avatar answered Oct 20 '22 23:10

cmur2