Is it safe to delete Ruby gems (user)?

~/.gem · Check first

What it is

Gems installed with gem install --user-install.

Can you delete it?

Sometimes, check what is inside first. Removing them uninstalls those gems; projects with a Gemfile can reinstall with bundle install.

How to clean it safely

  1. Run: gem cleanup

How big is it on your Mac?

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

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

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

Questions

Is it safe to delete ~/.gem?

Sometimes, check what is inside first. Removing them uninstalls those gems; projects with a Gemfile can reinstall with bundle install.

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