7 with rvm if you are using rvm ruby version manager they make you simple.
Rvm uninstall ruby gem.
Here version is version of ruby like 1 8 6 rvm uninstall version.
Try rvm alias create default ruby.
This method is very inconveninent.
Just use following command and uninstall ruby aptitude purge ruby.
Rvm remove is the preferred way of removing rubies from rvm.
Running rvm list again will result in the output below.
After above code to remove full trace of the rvm using below code.
This will be remove rvm gem.
Uninstalling a ruby version.
This command will uninstall version 2 6 3 of ruby.
Uninstall ruby version manager rvm.
In order to uninstall all gems you have to loop through all entries in gem list with bash scripting.
Gem uninstall name of gem solution.
To uninstall any version of ruby you previously installed using rvm use this command.
Ruby gems and ruby related binaries like rake spec gem etc are all installed directly into your operating system directories.
Thanks to rubygems 2 1 0 you now could do it with one command.
By default not only will it remove the ruby and it s source files it will also get rid of aliases wrappers environments and any associated binaries in other words it cleans up most of the install.
We will start with following simple command this command will remove rvm directories and all rubies what you install with rvm.
Ruby 2 5 5 x86 64 default ruby not set.
Current.