Ruby Language rbenv Uninstalling a Ruby

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

There are two ways to uninstall a particular version of Ruby. The easiest is to simply remove the directory from ~/.rbenv/versions:

$ rm -rf ~/.rbenv/versions/2.1.0

Alternatively, you can use the uninstall command, which does exactly the same thing:

$ rbenv uninstall 2.1.0

If this version happens to be in use somewhere, you'll need to update your global or local version. To revert to the version that's first in your path (usually the default provided by your system) use:

$ rbenv global system


Got any Ruby Language Question?