Created
December 11, 2015 23:18
-
-
Save steve-kasica/f108e234694b25c8a3ca to your computer and use it in GitHub Desktop.
Uninstall Atom
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
#!/bin/bash | |
# uninstall_atom.sh: Remove all Atom related files and folders from OS X installs | |
# See https://discuss.atom.io/t/how-to-completely-uninstall-atom-for-mac/9084 | |
# ------------------------------------------------------------------------------- | |
ATOM=( | |
"${HOME}/.atom" | |
"${HOME}/Library/Application Support/com.github.atom.ShipIt" | |
"${HOME}/Library/Application Support/Atom" | |
"${HOME}/Library/Caches/Atom" | |
"${HOME}/Library/Caches/com.github.atom" | |
"/usr/local/bin/atom" | |
"/usr/local/bin/apm" | |
"/Applications/Atom.app" | |
"${HOME}/Library/Preferences/com.github.atom.plist" | |
"${HOME}/Library/Saved Application State/com.github.atom.savedState" | |
) | |
for PATH in "${ATOM[@]}"; do | |
if [ -a "$PATH" ]; then | |
/bin/rm -rvf "$PATH" | |
else | |
echo "$PATH does not exist" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!