Developer Tools
•
4 min read
•
September 2026
How to Clean Homebrew Cache & Orphaned Cellar Packages
Reclaim 10GB–30GB of stale bottle downloads and old formula versions from ~/Library/Caches/Homebrew.
Homebrew's Growing Disk Footprint
If you use Homebrew to install developer tools, CLI utilities, and Mac applications, your drive is silently hoarding gigabytes of historical binary downloads (called "bottles") and outdated versions in:
~/Library/Caches/Homebrew
/opt/homebrew/Cellar (Apple Silicon)
/usr/local/Cellar (Intel)
/opt/homebrew/Cellar (Apple Silicon)
/usr/local/Cellar (Intel)
Native Homebrew Cleanup Commands
# See how much storage Homebrew cache is consuming
du -sh $(brew --cache)
# Remove all old downloads and stale locks
brew cleanup --prune=all
# Remove orphaned dependencies no longer required by any package
brew autoremove
du -sh $(brew --cache)
# Remove all old downloads and stale locks
brew cleanup --prune=all
# Remove orphaned dependencies no longer required by any package
brew autoremove
⚡ Automated Developer Hygiene
Maintain Clean Developer Tooling with XrayMac
XrayMac automatically detects Homebrew cache build debris alongside Xcode and npm bloat, clearing all developer caches in a single click.
Frequently Asked Questions
Will brew cleanup delete my installed apps?
No. brew cleanup only removes the downloaded installer archives (.bottle.tar.gz) and older superseded version folders.
XrayMac Engineering Team
Pure Swift 6 & APFS storage diagnostics for macOS Sonoma & Sequoia.