Clean up only Xcode unavailable simulators and Android Studio Cache #473
-
|
Hello friends, I'm wondering if I can clean up only the Xcode unavailable simulators because it will clean 95 >> 77.39GB and the Android Studio cache it will clean 79 items, 6.33GB. This would be very very helpful for us as developers on macOS. I don't want to touch anything else, any insight is always welcome Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
List all installed simulators to identify which to delete. Open Terminal and run: To delete all unavailable simulators (a common cleanup task), run: |
Beta Was this translation helpful? Give feedback.
-
|
For cleaning Xcode unavailable simulators specifically, you can do it from Terminal: # List all unavailable simulators
xcrun simctl list devices unavailable
# Delete all unavailable simulators
xcrun simctl delete unavailable
# Check how much space CoreSimulator is using
du -sh ~/Library/Developer/CoreSimulator/Devices/For Android Studio cache: # Check size
du -sh ~/.gradle/caches/
du -sh ~/Library/Android/sdk/
# Clean Gradle caches
cd ~/.gradle && rm -rf caches/transforms-*/ caches/build-cache-*/If you want a lightweight tool that focuses specifically on developer caches (Xcode DerivedData, simulators, node_modules, Docker, Homebrew, pip, Cargo, etc.), ClearDisk does exactly this -- it's a free, open-source macOS menu bar app. Here's a comprehensive guide for the Xcode side: https://bysiber.github.io/cleardisk/blog/xcode-disk-space-cleanup-guide.html |
Beta Was this translation helpful? Give feedback.
-
|
For cleaning Xcode unavailable simulators specifically, you can do it from Terminal: # List all unavailable simulators
xcrun simctl list devices unavailable
# Delete all unavailable simulators
xcrun simctl delete unavailable
# Check how much space CoreSimulator is using
du -sh ~/Library/Developer/CoreSimulator/Devices/For Android Studio cache: # Check size
du -sh ~/.gradle/caches/
du -sh ~/Library/Android/sdk/
# Clean Gradle caches
cd ~/.gradle && rm -rf caches/transforms-*/ caches/build-cache-*/If you want a lightweight tool that focuses specifically on developer caches (Xcode DerivedData, simulators, node_modules, Docker, Homebrew, pip, Cargo, etc.), ClearDisk does exactly this -- it's a free, open-source macOS menu bar app. Here's a comprehensive guide for the Xcode side: https://bysiber.github.io/cleardisk/blog/xcode-disk-space-cleanup-guide.html |
Beta Was this translation helpful? Give feedback.
List all installed simulators to identify which to delete. Open Terminal and run:
xcrun simctl list devicesTo delete all unavailable simulators (a common cleanup task), run:
xcrun simctl delete unavailable