Skip to content

Instantly share code, notes, and snippets.

@median-man
Last active October 24, 2024 16:38
Uninstall MongoDB on Mac

How to Completely Uninstall MongoDB Community on macOS Catalina

From this post on the IntelliPaat forum.

This guide assumes that MongoDB Community was installed on macOS Catalina using brew install mongodb-community@4.2. Refer to MongoDB Manual: Install on MacOS for installation instructions.

Commands to Uninstall

launchctl list | grep mongo 

launchctl remove homebrew.mxcl.mongodb 

pkill -f mongod 

brew uninstall mongodb-community

Commands to remove settings and data:

  • settings: rm -r /usr/local/etc/mongod.conf
  • logs: rm -r /usr/local/var/log/mongodb
  • data: rm -r /usr/local/var/mongodb
@malikkurosaki
Copy link

awesome , thank

@medmarwane
Copy link

Thank you Sr.

@devenock
Copy link

devenock commented Nov 2, 2022

Thank you for this.

@median-man
Copy link
Author

@Trend20 Glad you found it helpful.

@Aziz87
Copy link

Aziz87 commented Oct 24, 2024

thank you! Work on m1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment