How to uninstall Homebrew on a Mac
Homebrew has its own uninstall script, and its FAQ recommends using that instead of deleting things by hand. These commands are available from Homebrew's install repository as of 25 November 2026. Its locations are listed below so that you can check which bits of the installation remain on your machine.
Updated
Homebrew uninstaller script.
Open Terminal and copy the command from Homebrew's install repository. Homebrew/install
1. Run the script
The code is meant to be run from the command line, it will download the script and run it, and it will ask you before it deletes anything.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"2. Look before you leap
The script offers a "dry run" option, which will show you what it will delete without actually deleting anything. Download the script first and then run it with the --dry-run option.
curl -fsSLO https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh/bin/bash uninstall.sh --dry-run3. Read what it leaves
At the end it may list files it failed to delete, under "The following possible Homebrew files were not deleted". Those files are left to you to clean up yourself.
Where Homebrew keeps its files
The Homebrew directory is dependent on your Mac. The FAQ lists both.
On Apple silicon
The default place is this folder:
/opt/homebrewOn an Intel Mac
The default place is this folder, which Homebrew now calls legacy:
/usr/localThe download cache
Run brew --cache to see where downloads are kept. Homebrew says it is usually this folder:
~/Library/Caches/HomebrewMoving from Intel to Apple silicon
To remove only one install, Homebrew's README gives the --path option, for example:
/bin/bash uninstall.sh --path /usr/localWhat DiskKind shows
DiskKind is an app that scans your developer folders, such as those generated by Homebrew, and tells you what program created each folder. This will give you a better idea about which files are actually caches before you delete them. DiskKind for developers
The Caches with their source
DiskKind Free shows the size of Homebrew's cache and folders, and it also shows you which tool can recreate the folders and caches.
Trash, never delete
DiskKind moves only the files you want to the Trash, and allows you to Put back what it moves. Nothing is ever deleted until you empty the Trash.
Questions about uninstalling Homebrew
How do I uninstall Homebrew?
Run the uninstall script from Homebrew's install repository in Terminal. Homebrew's FAQ points to that script rather than deleting folders by hand.
Does the uninstall script remove everything?
It doesn't always do that. It might print files it didn't delete, and Homebrew leaves it up to you to delete those files.
Can I keep the download cache?
Yes. There is a --skip-cache-and-logs option in the script that keeps the cache and logs where they are.
Where does Homebrew put things on my Mac?
At /opt/homebrew on Apple silicon or at /usr/local on an Intel Mac. Downloads usually go to ~/Library/Caches/Homebrew.
Find out what all of your apps have installed on your Mac.
DiskKind Free tells you what each app keeps in your Library, then only moves what you want to the Trash. Never deletes anything!
