Search code examples
rubyrbenv

Delete ruby version using rbenv


I'm trying to delete ruby 2.0.0-p247 using rbenv. I tried rbenv uninstall 2.0.0-p247, but it does not seem to work. It appears again when I go to rbenv versions. The version I tried to delete is still there. How do I go about this?


Solution

  • After you have uninstalled Ruby using:

    rbenv uninstall 2.0.0-p247
    

    You need to clean up stale shimmed binaries from the removed version. You can do this by:

    rbenv rehash
    

    Just incase uninstall command is not working, you can also manually remove Ruby by:

    rm -rf ~/.rbenv/versions/2.0.0-p247
    

    just be careful with using rm -rf