Esegui i seguenti comandi per rimuovere mongodb dall'avvio/avvio e per disinstallarlo utilizzando Homebrew:
# See if mongo is in the launch/startup list
launchctl list | grep mongo
# Remove mongodb from the launch/startup
launchctl remove homebrew.mxcl.mongodb
# Kill the mongod process just in case it's running
pkill -f mongod
# Now you can safely remove mongodb using Homebrew
brew uninstall mongodb
Basta ricontrollare in /usr/local/bin/
per assicurarti che i comandi mongodb vengano rimossi.