Skip to content

Instantly share code, notes, and snippets.

@median-man
Last active December 8, 2023 16:06
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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 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.

@Trend20
Copy link

Trend20 commented Nov 2, 2022

Thank you for this.

@median-man
Copy link
Author

@Trend20 Glad you found it helpful.

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