-
-
Save anil826/d558e356a88acdd7cbd85da5c3700978 to your computer and use it in GitHub Desktop.
remove mongodb that was installed via brew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# checks to see if running | |
launchctl list | grep mongo | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
launchctl remove homebrew.mxcl.mongodb | |
pkill -f mongod | |
rm -f ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
brew uninstall mongodb | |
# double check existence | |
ls -al /usr/local/bin/mong* | |
ls -al ~/Library/LaunchAgents |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment