Uninstall all programs installed by Homebrew
I usually just do brew remove --force $(brew list).
Edited: brew list now requires the --formula argument, so it should now be
brew remove --force $(brew list --formula)