Uninstalling all brew packages

Recently I was making some workstation set up shell scripts for our macs at work. Of course these scripts never work the first time around so I needed to find a way to reset the system. Doing a complete reinstall was over the top but clearing out all of the packages already installed was close enough.

This is what I found online somewhere (probably Stack Exchange) which does the job:

brew remove –force $(brew list –formula)

That command doesn’t always clear out all the data files though. MySQL is a perfect example. So don’t forget to delete them yourself.

Remove large amounts of unwanted applications quickly

Bulk Crap Uninstaller (in short BCUninstaller or BCU) is a free (as in speech and beer) bulk program uninstaller with advanced automation. It excels at removing large amounts of applications with minimal to no user input, while requiring next to no technical knowledge.

It can detect most applications and games (even portable or not registered), clean up leftovers, force uninstall, automatically uninstall according to premade lists, and much more.

Source – https://www.bcuninstaller.com/