Skip to content

Instantly share code, notes, and snippets.

@lloydsheng
Last active July 9, 2019 03:00
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 lloydsheng/5bf5427579af0d181dc837947b4b39fa to your computer and use it in GitHub Desktop.
Save lloydsheng/5bf5427579af0d181dc837947b4b39fa to your computer and use it in GitHub Desktop.
Clean macOS Cache
# Prequirements
brew install coreutils
# Get size
du -sh $HOME/* | gsort -h
# iOS simulators cache
rm -rf "$HOME/Library/Developer/CoreSimulator/Devices/*"
# Wechat cache
rm -rf "$HOME/Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat/2.0b4.0.9/d41d8cd98f00b204e9800998ecf8427e/Message/MessageTemp/*"
rm -rf "$HOME/Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat/2.0b4.0.9/e4822c0bbc44fffa31ccd84a84a45dfb/Stickers"
# clean brew cache
brew cleanup
# clean yarn cache
yarn cache clean
# clean carthage cache
rm -rf "${HOME}/Library/Caches/org.carthage.CarthageKit"
# clean Cocoapods cache
rm -rf "${HOME}/Library/Caches/CocoaPods"
docker system prune -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment