Skip to content

Instantly share code, notes, and snippets.

@steve-kasica
Created December 11, 2015 23:18
Show Gist options
  • Save steve-kasica/f108e234694b25c8a3ca to your computer and use it in GitHub Desktop.
Save steve-kasica/f108e234694b25c8a3ca to your computer and use it in GitHub Desktop.
Uninstall Atom
#!/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
@davidmoshal
Copy link

thanks!

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