Kør følgende kommandoer for at fjerne mongodb fra start/start og for at afinstallere det ved hjælp af 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
Bare dobbelttjek /usr/local/bin/
ind for at sikre, at mongodb-kommandoerne er fjernet.