Skip to content

Instantly share code, notes, and snippets.

@distributedlock
Last active August 29, 2015 14:18
Show Gist options
  • Save distributedlock/958679654b9ac179a23b to your computer and use it in GitHub Desktop.
Save distributedlock/958679654b9ac179a23b to your computer and use it in GitHub Desktop.
RemoveAllBlizzardFiles.sh
#!/usr/bin/env bash
rm -rf /Applications/Battle.net*
rm -rf ~/Library/Application\ Support/Blizzard/
rm -rf ~/Library/Application\ Support/Battle.net/
rm -rf ~/Library/Preferences/com.blizzard*
rm -rf ~/Library/Preferences/net.battle*
rm -rf ~/Library/Preferences/com.unity3d*
rm -rf ~/Library/Preferences/unity3d*
rm -rf /Users/Shared/Battle.net/
rm -rf /Users/Shared/Blizzard/
echo "[INFO]: Cleaned all Blizzard related files!"
echo "[INFO]: Changing DNS server to Google Public DNS!"
sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4
echo "[INFO]: Please rerun the setup now (Battle.net, WoW, Hearthstone, etc.)."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment