How to remove all versions of a formula using brew

$ brew remove hadoop Error: hadoop has multiple installed versions 

I can not find a way to remove all versions (they are 1.0.4 and 1.1.2 ).

+4
source share
2 answers

brew cleanup hadoop seems to be the way to go, it removes all installed versions! Hope this helps someone.

+9
source

This also works:

 brew remove --force hadoop 
+9
source

All Articles