Skip to content

Instantly share code, notes, and snippets.

@stelio
Forked from katychuang/remove_brew-mongo_osx.sh
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stelio/df2a0c14dd387afc0f8e to your computer and use it in GitHub Desktop.
Save stelio/df2a0c14dd387afc0f8e to your computer and use it in GitHub Desktop.
#!/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