Mac folder guide
What Is ~/.cache on Mac? Safe to Delete?
~/.cache
~/.cache is a hidden folder in your home folder where command line tools store downloads they can fetch again. It is safe to delete what is inside. Expect slower first runs while tools download things again.
What is ~/.cache on a Mac?
Many tools that follow the Linux convention keep their cache here instead of in ~/Library/Caches. Each tool gets its own subfolder.
It often hides a few large items. Hugging Face models in ~/.cache/huggingface can run to many gigabytes, and Python package managers such as uv keep wheels there.
What’s inside
- huggingface, downloaded AI models and datasets
- uv and other package manager caches
- pre-commit hook environments
- Folders from tools you may have stopped using long ago
How to clear ~/.cache safely
- Press Command, Shift and period in Finder to show hidden files, or use Terminal.
- Check which subfolders are big with the command below.
- Delete the subfolders of tools you no longer use, or clear a cache with the tool’s own command.
- Keep large model folders you still use, since downloading them again takes time and bandwidth.
du -sh ~/.cache/* 2>/dev/null | sort -rh | head
When to keep it
- Model folders you use often, unless you are happy to download them again.
Related guides
- Clear Homebrew, pip and Gradle caches
- Which Library caches are safe to delete
- Clean up node_modules folders
Questions people ask
Is it safe to delete ~/.cache on a Mac?+
Yes. It holds caches tools can rebuild. The next run of each tool is slower while it downloads again.
Why is ~/.cache so big?+
Usually AI models in the huggingface folder, or a package manager cache that has never been cleaned.
Why can’t I see ~/.cache in Finder?+
Folders starting with a dot are hidden. Press Command, Shift and period in Finder to show them.
See which folders fill your Mac
MacZentra, a disk analyzer and storage cleaner for Mac, scans your disk locally and draws it as a Treemap or Sunburst, so a folder like this one shows up with its real size. Scanning and every visualization are free. Cleaning is a one-time $49.99 purchase, and anything you remove goes to the Trash, so it can be restored.
macOS 13 Ventura or later · Apple silicon