brew's documentation isn't fully baked, but this should do what you want:<p><pre><code>  $ brew cleanup git
  Uninstalling /usr/local/Cellar/git/1.6.5.4...
  Uninstalling /usr/local/Cellar/git/1.6.5.7...
  Uninstalling /usr/local/Cellar/git/1.6.6...
</code></pre>
Or just "brew cleanup" to clean everything. (That doesn't appear to work with projects built from version control repos, though, like emacs with Cocoa support.)<p>edit: Maybe you meant that you want to remove the whole thing, i.e., all versions, not just the unused ones. Looks like you have to "cleanup" first, then "remove". That seems like a bug to me.