Unfortunately, it seems that ruby-install just downloads and compiles Ruby, without the ability to remove it, unlike RVM or rbenv .
So, probably, you will need to execute some manual commands to delete all installed files.
1. Find it
Usually ruby-install installs rubies in the ~/.rubies/ folder.
If you are not sure which ruby was installed using ruby-install , find the .installed.list file, since it contains a list of installed files during Ruby installation. If you want to quickly find it, just run locate.installed.list and you will get a short list of them.
Then run cat for the file located in the version that you want to remove to make sure which root folder to install ruby you want to delete.
2. Delete it
Then you can simply delete the folder where the target version is located.
If you want to remove ruby-1.9.3-p545 , run:
rm -Rf ~/.rubies/ruby-1.9.3-p545
source share