What it is
Composer's download cache of PHP packages (older setups use ~/.composer/cache).
Can you delete it?
Yes, it is rebuilt automatically. Composer downloads packages again when needed.
How to clean it safely
- Run:
composer clear-cache
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh ~/"Library/Caches/composer" 2>/dev/nullStep-by-step guide: Developer caches on a Mac →
Related folders
- vendor (PHP project) ·
<project>/vendor - AWS CLI cache ·
~/.aws/cli/cache - PyTorch hub cache ·
~/.cache/torch - Sublime Text cache ·
~/Library/Caches/com.sublimetext.4 - Bun install cache ·
~/.bun/install/cache - Cabal store ·
~/.cabal/store
Questions
Is it safe to delete ~/Library/Caches/composer?
Yes, it is rebuilt automatically. Composer downloads packages again when needed.
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