Skip to content

Instantly share code, notes, and snippets.

@50percentgrey
Created January 29, 2020 19:11
  • Star 27 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save 50percentgrey/5b0edb5322e54d1c1b64ebd151699892 to your computer and use it in GitHub Desktop.
Delete-Clean Unnecessary files / Apple / Xcode
#!/bin/bash
# Delete Archived Applications
rm -r ~/Library/Developer/Xcode/Archives/*/
# Delete Devired Data
rm -r ~/Library/Developer/Xcode/DerivedData/*/
# Delete Apple cached files
rm -r ~/Library/Developer/CoreSimulator/Caches/dyld/*/*/
# Delegete cache on com.apple.DeveloperTools
rm -r /private/var/folders/dk/*/C/com.apple.DeveloperTools/*/
# Delete unused simulators
xcrun simctl delete unavailable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment