Is it safe to delete rbenv Ruby versions?

~/.rbenv/versions · Check first

What it is

Every Ruby version installed with rbenv.

Can you delete it?

Sometimes, check what is inside first. Versions no project uses can go; deleting one in use breaks those projects.

How to clean it safely

  1. Run: rbenv versions
  2. Remove unused ones with rbenv uninstall.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/".rbenv/versions" 2>/dev/null

Step-by-step guide: Developer caches on a Mac →

Questions

Is it safe to delete ~/.rbenv/versions?

Sometimes, check what is inside first. Versions no project uses can go; deleting one in use breaks those projects.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac