Removing all Homebrew stuff
By Flavio Copes
How I removed every Homebrew package to free up space, using brew remove --force with brew list to wipe all formulae and casks, then reinstalled what I needed.
~~~
Stuff just accumulates over time.
I looked into the /opt/Cellar folder, which holds all the Homebrew packages, and it was 10GB.
So I found this suggestion and ran:
brew remove --force $(brew list --formula)
and then
brew remove --cask --force $(brew list)
to remove all commands and apps installed through Homebrew.
Then I reinstalled just the thing I needed.
~~~
Related posts about mac: