Developers · Homebrew downloads

Is it safe to delete Homebrew’s cache on Mac?

Safe to removeComes back on its own
~/Library/Caches/Homebrew

Updated October 17, 2026By the MoreRoom team, Yando Pte. Ltd.This page as Markdown

The short answer

Yes. Rebuilt or re-downloaded automatically when needed.

What is it?

Homebrew keeps the bottles, source archives and cask installers it downloads in ~/Library/Caches/Homebrew (brew --cache shows the path), so reinstalling does not need another download. It removes downloads older than 120 days by default and runs a cleanup periodically, but the cache can still reach several gigabytes.

What happens if you delete it?

Homebrew downloads files again only when you install, upgrade or reinstall a package that needs them. Installed packages keep working.

How to remove it properly

Run brew cleanup --prune=all in Terminal: it deletes all cached downloads, removes old versions of installed formulae and, unless HOMEBREW_NO_AUTOREMOVE is set, dependencies nothing needs any more. It is permanent; brew cleanup --prune=all --dry-run shows what it would remove.

Use the tool’s official command: brew cleanup --prune=all

How MoreRoom helps

MoreRoom recognises this item, shows its real size and when it was last used, and labels it “Safe to remove”. In the free version you can move it to the Trash in one click, with Undo; Pro collects every safe item at once.

When the tool is installed, MoreRoom runs its official command for you (brew cleanup --prune=all) instead of deleting files — and tells you that this step can’t be undone.

Frequently asked questions

Is it safe to delete Homebrew’s cache on Mac?

Yes. Rebuilt or re-downloaded automatically when needed. Homebrew downloads files again only when you install, upgrade or reinstall a package that needs them. Installed packages keep working.

Will Homebrew downloads come back after I delete it?

Yes. Homebrew downloads files again only when you install, upgrade or reinstall a package that needs them. Installed packages keep working.

How do I remove Homebrew downloads properly?

Run brew cleanup --prune=all in Terminal: it deletes all cached downloads, removes old versions of installed formulae and, unless HOMEBREW_NO_AUTOREMOVE is set, dependencies nothing needs any more. It is permanent; brew cleanup --prune=all --dry-run shows what it would remove.

Guides that mention it

Related folders