# Is it safe to delete Xcode’s SwiftUI Previews folder?

- URL: https://moreroom.app/folders/xcode-previews
- Item: SwiftUI preview data
- Location: `~/Library/Developer/Xcode/UserData/Previews`
- Verdict: Safe to remove — Rebuilt or re-downloaded automatically when needed.
- Comes back on its own: yes
- Source: MoreRoom rules catalogue (2026-10-17), by Yando Pte. Ltd.

## What is it?

Xcode Previews run on their own set of hidden simulators, separate from the ones you see in Xcode’s device list. This folder holds those preview devices and the builds and data Xcode puts on them. It grows with each new SDK and platform you preview on and often reaches several gigabytes.

## What happens if you delete it?

Xcode recreates the preview simulators the next time you open a canvas, so the first preview after removal takes longer to appear. Your preview code is untouched.

## How to remove it properly

Quit Xcode, then run `xcrun simctl --set previews delete all` in Terminal, which deletes all preview simulators with Apple’s own tool (permanent). Alternatively, move `~/Library/Developer/Xcode/UserData/Previews` to the Trash with Finder’s Go › Go to Folder….
