Sometimes you may need to uninstall all the rubygems inside a gemset.
The problem is that the only way to uninstall all the gems inside a RVM gemset is to use the following command:
1 2 3
A bit boring, don’t you think?
One way to automate this process is through the following command:
If you don’t use RVM to manage different Ruby versions, maybe you have to change the command above in something like this:
Pay attention to copy all the
In this way you can uninstall all the gems only with one command.
Hope this helps :–)