macos - Uninstall all programs installed by Homebrew - Ask Different

PHOTO EMBED

Tue Nov 03 2020 21:50:48 GMT+0000 (Coordinated Universal Time)

Saved by @richard

#Loop while there are still package installed
while [[ `brew list | wc -l` -ne 0 ]]; do
    #Interate over each installed package
    for EACH in `brew list`; do
        #Uninstall each package
        brew uninstall $EACH --force
    done
done
content_copyCOPY

https://apple.stackexchange.com/questions/198623/uninstall-all-programs-installed-by-homebrew