how to delete mongodb community files macbook 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