Remove all gems and Rubygems completely

One fuck-up led to another (don’t ask 🙂 ) and I had to do whats up there in the title. These are two links that helped me most:

Quickest way to remove all gems

gem list | cut -d” ” -f1 | xargs gem uninstall -aIx

Source:

http://geekystuff.net/2009/01/14/remove-all-ruby-gems/

Removing rubygems completely:

http://www.decentmind.com/2010/05/how-to-uninstall-remove-ruby-gems-on-ubuntu/

Did this waste your time or did you benefit from it? Let me know :-) Feel free to add your own views too