RVM: Uninstalling all gems of a gemset
Solution 1:
Use the gemset empty
command:
rvm gemset empty mygems
Solution 2:
This command removes all the ruby gems installed locally in 1-step Works well in Ubuntu 10.10
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
PS - removes all local gems. Use sudo accordingly.
Solution 3:
rvm gemset empty <gemset name>
This will remove all gems from your mentioned gemset.