uninstall mongodb community mac code example
Example: remove mongodb from mac
$ launchctl list | grep mongo
$ launchctl remove homebrew.mxcl.mongodb
$ pkill -f mongod
$ brew uninstall mongodb
$ launchctl list | grep mongo
$ launchctl remove homebrew.mxcl.mongodb
$ pkill -f mongod
$ brew uninstall mongodb