New way

Use the uninstall command: rbenv uninstall [-f|--force] <version>

rbenv uninstall 2.1.0  # Uninstall Ruby 2.1.0

Use rbenv versions to see which versions you have installed.


Old way

To remove a Ruby version from rbenv, delete the corresponding directory in ~/.rbenv/versions. E.g.

rm -rf ~/.rbenv/versions/1.9.3-p0

Run rbenv rehash afterwards to clean up any stale shimmed binaries from the removed version.

Answer from Sam Stephenson on Stack Overflow
🌐
GitHub
github.com › rbenv › rbenv
GitHub - rbenv/rbenv: Manage your app's Ruby environment · GitHub
To remove old Ruby versions, simply rm -rf the directory of the version you want to remove. You can find the directory of a particular Ruby version with the rbenv prefix command, e.g. rbenv prefix 2.7.0. The ruby-build plugin provides an rbenv ...
Starred by 16.7K users
Forked by 1.4K users
Languages   Shell 97.8% | Ruby 1.6%
Discussions

Possible to deactivate rbenv?
It's not quite deactivation, but maybe an `rbenv shell system` or add a `.ruby-version` file with `system` as its contents. More on reddit.com
🌐 r/ruby
4
2
June 8, 2024
ruby - How do you uninstall rbenv on macOS? - Stack Overflow
How do you uninstall rbenv on macOS? My version of rbenv is messed up, and brew uninstall rbenv isn't working because brew relies on ruby. More on stackoverflow.com
🌐 stackoverflow.com
Trying to uninstall rbenv
I have been trying to uninstall rbenv, however it seems to be lingering on my system! I used sudo apt-get remove rbenv, and it said it had removed it. However, when I ran this command: user@user-pc-SATELLITE-C55-A:/opt/metasploit-framework$ bundle exec gem list, I got this: rbenv: version``2.3... More on github.com
🌐 github.com
2
September 26, 2016
any way to uninstall ruby using rbenv
Didn't find any way on readme to remove ruby installed with rbenv. More on github.com
🌐 github.com
4
October 13, 2015
🌐
Karloespiritu
karloespiritu.github.io › cheatsheets › rbenv
rbenv · Cheatsheets
# Install rbenv $ brew install rbenv # Completely uninstall rbenv $ brew uninstall rbenv # list all available versions $ rbenv install -l # install a specific Ruby version $ rbenv install 2.3.0 # Sets a local application-specific Ruby version # by writing the version name to a `.ruby-version` ...
🌐
Reddit
reddit.com › r/ruby › possible to deactivate rbenv?
r/ruby on Reddit: Possible to deactivate rbenv?
June 8, 2024 -

My console is showing; I tried rbenv deactivate but thats command not found.

Is there a way to remove it from my python directory but keep it for my ruby or rails directory? I am using ohmyzsh and zsh

~/Developer/Python/CS50_Python                                      (ruby icon) 3.3.0                        
🌐
Ruby Toolbox
ruby-toolbox.com › projects › sstephenson › rbenv
Project: sstephenson/rbenv - The Ruby Toolbox
To remove old Ruby versions, simply rm -rf the directory of the version you want to remove. You can find the directory of a particular Ruby version with the rbenv prefix command, e.g. rbenv prefix 2.7.0. The ruby-build plugin provides an rbenv ...
🌐
GitHub
raw.githubusercontent.com › rbenv › rbenv › master › README.md
https://raw.githubusercontent.com/rbenv/rbenv/mast...
This will **delete all Ruby versions** ... the rbenv package removal: - Homebrew: `brew uninstall rbenv` - Debian, Ubuntu, and their derivatives: `sudo apt purge rbenv` - Archlinux and its derivatives: `sudo pacman -R rbenv` ## Development Tests are executed using [Bats](https...
🌐
GitHub
github.com › rbenv › ruby-build › blob › master › bin › rbenv-uninstall
ruby-build/bin/rbenv-uninstall at master · rbenv/ruby-build
# Summary: Uninstall a specific Ruby version · # # Usage: rbenv uninstall [-f|--force] <version> # # -f Attempt to remove the specified version without prompting · # for confirmation.
Author   rbenv
Find elsewhere
🌐
GitHub
gist.github.com › IanVaughan › 2902499
Uninstall all rbenv gems · GitHub
#!/bin/sh RBENVPATH=`rbenv root` echo $RBENVPATH RUBIES=`ls $RBENVPATH/versions` for ruby in $RUBIES; do echo '---------------------------------------' echo $ruby rbenv local $ruby gem cleanup done ... --no-verbose is what removes the header. (We may need another fix in the future if things change again) #!/bin/bash gem_remove() { gem list --no-versions --no-verbose | xargs gem uninstall -aIx gem list } gem_remove_all() { #rbenv versions --bare RBENVPATH=`rbenv root` echo $RBENVPATH RUBIES=`ls $RBENVPATH/versions` for ruby in $RUBIES; do echo '---------------------------------------' echo $ruby rbenv local $ruby gem_remove done }
🌐
OnWorks
onworks.net › home
rbenv-uninstall
--definitions List available definitions. -f, --force When using rbenv-install, force installation of Ruby versions that are already installed. When using rbenv-uninstall, uninstall without prompting for confirmation or displaying an error message for Rubies that are not currently installed.
🌐
Ulysse
ulysse.md › 2022 › 02 › 01 › Cleanup-Your-Ruby-Versions.html
Cleanup Your Ruby Versions - Posted By Ulysse
Ok well, there are some unused versions there! $ rbenv uninstall --force 2.4.4 $ rbenv uninstall --force 2.5.3 $ rbenv uninstall --force 2.6.5 $ rbenv uninstall --force 2.6.6 $ rbenv uninstall --force 2.7.1 $ rbenv uninstall --force 2.7.2
🌐
Fig
fig.io › manual › rbenv › uninstall
rbenv uninstall | Fig
Uninstall a specific Ruby version · Made with ❤️ in San Francisco Copyright © 2026 Hercules Labs Inc
🌐
Devhints
devhints.io › ruby › rbenv cheatsheet
rbenv cheatsheet
These are generic instructions; there may be rbenv packages available for your OS. ... Application-specific version numbers are stored in .ruby-version.
🌐
GitHub
github.com › rbenv › rbenv › issues › 933
Trying to uninstall rbenv · Issue #933 · rbenv/rbenv
September 26, 2016 - I used sudo apt-get remove rbenv, and it said it had removed it. However, when I ran this command: user@user-pc-SATELLITE-C55-A:/opt/metasploit-framework$ bundle exec gem list, I got this: rbenv: version``2.3...
Author   BytesDirect
🌐
Debian Manpages
manpages.debian.org › testing › ruby-build › rbenv-uninstall.1
rbenv-uninstall(1) — ruby-build — Debian testing — Debian Manpages
The definition argument can optionally start with "ruby-", in which case it resolves to a CRuby that matches the version number that follows.
🌐
Linux Command Library
linuxcommandlibrary.com › man › rbenv
rbenv man | Linux Command Library
$ rbenv version · Uninstall a Ruby version · $ rbenv uninstall [version] Display all Ruby versions that contain the specified executable ·
🌐
GitHub
github.com › rbenv › rbenv › issues › 797
any way to uninstall ruby using rbenv · Issue #797 · rbenv/rbenv
October 13, 2015 - Didn't find any way on readme to remove ruby installed with rbenv.
Author   pulkitnandan
🌐
Arturgruchala
arturgruchala.com › rbenv-to-asdf
Deprecation of rbenv on Bitrise: Switching to asdf
September 25, 2023 - #!/bin/bash versions=$(rbenv versions --skip-aliases --bare) for version in $versions; do echo "Removing Ruby version $version" rbenv uninstall $version done
🌐
Mac Install Guide
mac.install.guide › ruby › 9
Uninstall Ruby · Mac Install Guide
June 16, 2021 - rvm uninstall just removes the folder under ~/.rvm/rubies. In most cases, you should use rvm remove. For example: $ rvm list rubies ruby-3.4.1 $ rvm remove ruby-3.4.1 · See Removing Rubies with RVM.
🌐
GitHub
github.com › rbenv › rbenv › issues › 969
Permission issues when useing 'rbenv uninstall <version>' · Issue #969 · rbenv/rbenv
February 13, 2017 - So I took your advice from past issue to uninstall first (minitest permissions were causing a problem). When I run rbenv uninstall <version> I get a lot of the following type output, and not all of the directories are removed.
Author   natanio