What it is
Hex's cache of downloaded Elixir and Erlang packages.
Can you delete it?
Yes, it is rebuilt automatically. mix deps.get downloads them again.
How to clean it safely
- Delete ~/.hex/packages.
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh ~/".hex" 2>/dev/nullStep-by-step guide: Developer caches on a Mac →
Related folders
- _build (Elixir) ·
<project>/_build - Go module cache ·
~/go/pkg/mod - Ivy cache ·
~/.ivy2/cache - sccache ·
~/Library/Caches/Mozilla.sccache - Gradle wrapper distributions ·
~/.gradle/wrapper/dists - Helm cache ·
~/Library/Caches/helm
Questions
Is it safe to delete ~/.hex?
Yes, it is rebuilt automatically. mix deps.get downloads them again.
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