What it is
Simulator devices Xcode creates just to render SwiftUI previews.
Can you delete it?
Yes, it is rebuilt automatically. Xcode creates them again the next time a preview runs.
How to clean it safely
- Quit Xcode.
- Run:
xcrun simctl --set previews delete all
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh ~/"Library/Developer/Xcode/UserData/Previews" 2>/dev/nullStep-by-step guide: Clean up Xcode →
Related folders
- Instruments traces ·
~/Library/Developer/Xcode/Instruments - Simulator caches ·
~/Library/Developer/CoreSimulator/Caches - XCTestDevices (test simulators) ·
~/Library/Developer/XCTestDevices - Xcode cache ·
~/Library/Caches/com.apple.dt.Xcode - Mint packages ·
~/.mint - watchOS DeviceSupport ·
~/Library/Developer/Xcode/watchOS DeviceSupport
Questions
Is it safe to delete ~/Library/Developer/Xcode/UserData/Previews?
Yes, it is rebuilt automatically. Xcode creates them again the next time a preview runs.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac