Skip to content

Instantly share code, notes, and snippets.

@median-man
Last active October 24, 2024 16:38
Show Gist options
  • Save median-man/ea9e307d842c5f32adf20d383f9e6293 to your computer and use it in GitHub Desktop.
Save median-man/ea9e307d842c5f32adf20d383f9e6293 to your computer and use it in GitHub Desktop.
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 [email protected]. 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.

@Trend20
Copy link

Trend20 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