Last active
July 9, 2019 03:00
-
-
Save lloydsheng/5bf5427579af0d181dc837947b4b39fa to your computer and use it in GitHub Desktop.
Clean macOS Cache
This file contains hidden or 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
# 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