wayneeseguin/rvm — Issue #591: `rvm gemset empty` gives "~/.rvm/gems/ruby-1.9.2-p290@ already does not exist"
Author: benolee
Created: 2011-11-10 20:46:43+00:00
State: open

I used to use `rvm gemset empty` to empty the gemset I was currently using. It seems this functionality has changed.

`rvm gemset create mygems && rvm gemset empty mygems` works as long as I give the gemset name as an argument. However, there seems to be no way to empty the default gemset. I have tried `rvm gemset empty default`, but it assumes I'm talking about a gemset called "default", and gives the same error message.

See the following bash session for an illustration.
```
~$ source ~/.rvm/scripts/rvm
~$ rvm use 1.9.2
Using /home/ben/.rvm/gems/ruby-1.9.2-p290
~$ rvm info

ruby-1.9.2-p290:

system:
uname: "Linux isotope11-desktop 2.6.32-35-generic #78-Ubuntu SMP Tue Oct 11 16:11:24 UTC 2011 x86_64 GNU/Linux"
bash: "/bin/bash => GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)"
zsh: " => not installed"

rvm:
version: "rvm 1.9.2 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]"

ruby:
interpreter: "ruby"
version: "1.9.2p290"
date: "2011-07-09"
platform: "x86_64-linux"
patchlevel: "2011-07-09 revision 32553"
full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]"

homes:
gem: "/home/ben/.rvm/gems/ruby-1.9.2-p290"
ruby: "/home/ben/.rvm/rubies/ruby-1.9.2-p290"

binaries:
ruby: "/home/ben/.rvm/rubies/ruby-1.9.2-p290/bin/ruby"
irb: "/home/ben/.rvm/rubies/ruby-1.9.2-p290/bin/irb"
gem: "/home/ben/.rvm/rubies/ruby-1.9.2-p290/bin/gem"
rake: "/home/ben/.rvm/rubies/ruby-1.9.2-p290/bin/rake"

environment:
PATH: "/home/ben/.rvm/gems/ruby-1.9.2-p290/bin:/home/ben/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/ben/.rvm/rubies/ruby-1.9.2-p290/bin:/home/ben/.rvm/bin:/home/ben/local/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:~/local/python/bin:/home/ben/local/beanstalkd/bin"
GEM_HOME: "/home/ben/.rvm/gems/ruby-1.9.2-p290"
GEM_PATH: "/home/ben/.rvm/gems/ruby-1.9.2-p290:/home/ben/.rvm/gems/ruby-1.9.2-p290@global"
MY_RUBY_HOME: "/home/ben/.rvm/rubies/ruby-1.9.2-p290"
IRBRC: "/home/ben/.rvm/rubies/ruby-1.9.2-p290/.irbrc"
RUBYOPT: ""
gemset: ""

~$ rvm gemset empty
/home/ben/.rvm/gems/ruby-1.9.2-p290@ already does not exist.
~$
```