Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mac disk cleanup

Mac disk cleanup, because updating Xcode from the App Store needs at least 40GB of free disk space:

rm -rf $(brew --cache)

rm -fr ~/Library/Caches/com.spotify.client

rm -rf ~/Library/Developer/Xcode/DerivedData/

rm -rf ~/Library/Developer/Xcode/iOS DeviceSupport/
yarn cache clean
rm -rf ~/.m2/repository

Takes about 3 mins

brew uninstall osgeo-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment