Developer Tools
How to Completely Uninstall Homebrew on Mac
To uninstall Homebrew completely, use the official uninstall script found in its install repository. Dragging components to the Trash will not remove all associated data or background items.
Remove Homebrew and everything it leaves behind
Homebrew data usually takes 1 GB – 20 GB on a Mac. The free scan shows the exact size on your Mac before you change anything.
Free scan · No account · Nothing is deleted without your OK · Moves to the Trash first · macOS 14+
OptiClear is a Mac app. Copy this page's link and open it on your Mac.
Email me the link- Application
- Homebrew
- Typical data size
- 1 GB – 20 GB
- Category
- Developer Tools
- File Location
~/Library/Caches/Homebrew
Homebrew has its own uninstaller
- Quit the app completely (⌘+Q in the menu bar).
- Homebrew has an official uninstall script published in its install repository.
- Remove the folders Homebrew left behind, listed in the table below.
- Empty the Trash to free up the space.
Everything Homebrew keeps on your Mac
4 locations. Tick each one as you remove it; back up anything marked as your data first.
Locations are the standard macOS folders Homebrew uses; some appear only after you use the matching feature.
What Homebrew leaves behind
Specific to Homebrew
Manual deletion fails to remove launch agents added to system folders for background services. It also leaves behind cached bottles and source archives in the library, though these are rebuilt automatically. User data for services like PostgreSQL resides within the app prefix and remains until that specific directory is deleted.
- Background items
- brew services adds launch agents to ~/Library/LaunchAgents for services such as databases.
- License
- Homebrew is free and open source.
Preparing to remove Homebrew
Before removal, ensure all active services are stopped. Export a list of your installed packages or create a Brewfile to keep a record of your environment. Because some tools store data in /opt/homebrew, failing to back up databases will result in permanent loss when the prefix is deleted.
0 of 4 done
By hand or with OptiClear
| By hand | With OptiClear | |
|---|---|---|
| Places to check | 4 folders, one by one | One scan |
| File sizes | You look them up yourself | Shown for every item |
| Removing the wrong thing | Easy to delete the wrong folder | Goes to the Trash first, so it can be restored |
| Cost | Free | Scan is free; cleaning needs Pro (yearly plan has a 7-day free trial) |
See it working



Try it without risk
- Download and scan for freeSee every Homebrew file and its size. No account needed.
- Clean free for 7 daysStart the 7-day free trial of the yearly plan inside the app.
- Keep it or cancelCancel in your App Store settings at least 24 hours before the trial ends and you won't be charged.
After the free trial, Pro costs $39.99 per year in your country's App Store; cancel any time.