remove package installed by brew

Package name : sbt

Path : /usr/local/cellar/sbt

what I have try :

sudo rmdir sbt -i on my terminal but get "rmdir: sbt: Directory not empty"


Solution 1:

Try this one:

brew uninstall sbt --force