In order to uninstall all gems you have to loop through all entries in gem list with bash scripting.
Rvm uninstall ruby gem.
7 with rvm if you are using rvm ruby version manager they make you simple.
Here version is version of ruby like 1 8 6 rvm uninstall version.
Rvm remove is the preferred way of removing rubies from rvm.
Using a dpkg based packet manager we can uninstall ruby in simply.
To uninstall any version of ruby you previously installed using rvm use this command.
Try rvm alias create default ruby.
Thanks to rubygems 2 1 0 you now could do it with one command.
Uninstall ruby version manager rvm.
This command will uninstall version 2 6 3 of ruby.
After above code to remove full trace of the rvm using below code.
We will start with following simple command this command will remove rvm directories and all rubies what you install with rvm.
Current.
Gem uninstall name of gem solution.
Ruby 2 5 5 x86 64 default ruby not set.
Uninstalling a ruby version.
This method is very inconveninent.
Running rvm list again will result in the output below.
Ruby related stuff is intercepted by rvm so that ruby gems and ruby related binares are installed into rvm dir in a nice clean organized way.
Ruby gems and ruby related binaries like rake spec gem etc are all installed directly into your operating system directories.
Rvm uninstall just removes the ruby leaves everything else.