# What Is ~/Library/Saved Application State?

> Saved Application State is how macOS reopens apps with the windows you left open. Clearing it is safe: apps simply start with fresh windows.

- Updated: 2026-10-10
- URL: https://fresh.ist/library/saved-application-state/

**TL;DR:** ~/Library/Saved Application State holds one .savedState folder per app, recording which windows were open so macOS can restore them the next time the app launches. Deleting it is safe. You lose only that window layout, and sometimes unsaved untitled documents. Leftover folders from removed apps can always go.

## Definition

- Full path: `~/Library/Saved Application State`
- Scope: user (inside your home folder)
- Freshist checks this folder when uninstalling an app. When you uninstall an app, Freshist looks here for items that belong to it. Matches on the app's bundle ID can be pre-selected; name-only guesses are labeled “not sure” and never pre-selected. Removed items go to the Trash, so you can undo.

## What macOS saves here

Since OS X Lion, apps that support **state restoration** can reopen exactly as you left them: the same documents, window positions, scroll positions and selected tabs. To do that, each app writes a small snapshot to `~/Library/Saved Application State/<bundle ID>.savedState` while it runs. The next time the app launches, macOS hands that snapshot back and the app rebuilds its windows.

The same data supports **Reopen windows when logging back in**, the checkbox in the dialog that appears when you restart or log out.

Sandboxed apps write their snapshot inside their container instead, at `~/Library/Containers/<bundle ID>/Data/Library/Saved Application State`. Some show up in the main folder only as a link pointing there, so this folder alone doesn't capture every app's state.

## Is it safe to delete?

Yes. Nothing here is a document or a setting you chose deliberately.

| What you remove | What happens next |
|---|---|
| A folder for an app you no longer have | Nothing; the app is gone |
| A folder for an app you use | It opens with a fresh window instead of your last layout |
| A folder for an app with unsaved untitled documents | Some apps keep those drafts in saved state, so they can be lost |
| The whole folder's contents | Every app forgets its last window layout once |

Only the third row carries real risk. TextEdit, Preview and many editors can restore untitled documents you never saved. If you rely on that, save those documents first.

Folders here are typically small, from a few kilobytes to a few megabytes each. Clear them when an app misbehaves on launch or you want a clean start, not to recover space.

## Inspecting it

```
ls -la ~/Library/"Saved Application State"
du -sh ~/Library/"Saved Application State"
```

Folder names match bundle IDs, such as `com.apple.Preview.savedState`, so it's easy to match each one to an app.

## Clearing it by hand

1. Quit the app whose state you want to reset. If an app is running, it writes its state again.
2. In Finder, choose **Go → Go to Folder…** and enter `~/Library/Saved Application State`.
3. Move that app's `.savedState` folder to the Trash, or select everything to reset all apps.
4. Open the app again. It should start with a single new window.

For a sandboxed app, also look in its folder under [Containers](/library/containers/), as described above.

## Preventing it instead

If you never want windows restored, change the setting rather than clearing the folder repeatedly. In **System Settings → Desktop & Dock**, turn on **Close windows when quitting an application**. When you restart, deselect **Reopen windows when logging back in**.

This folder is also covered as a cleanable item in our [Saved Application State cache guide](/caches/saved-application-state/). When you uninstall an app, its `.savedState` folder is one of the smaller leftovers next to [Preferences](/library/preferences/) and [Caches](/library/caches/).

## Sources

- [Change Desktop & Dock settings on Mac](https://support.apple.com/guide/mac-help/change-desktop-dock-settings-mchlp1119/mac) (Apple Support)
- [NSWindowRestoration](https://developer.apple.com/documentation/appkit/nswindowrestoration) (Apple Developer Documentation)

## Frequently asked questions

### Can clearing saved state fix an app that crashes on launch?

Sometimes. If an app crashes while restoring its windows, removing its .savedState folder makes it start with a fresh window. If it still crashes, the cause is elsewhere, often in its preferences or data.

### How do I stop apps from reopening their windows?

Turn on Close windows when quitting an application in System Settings → Desktop & Dock. For a single quit, hold Option and choose Quit and Close All Windows from the app's menu.

### Why are some entries in this folder aliases?

Sandboxed apps keep their saved state inside their own container under ~/Library/Containers. macOS sometimes places a link here that points into that container.

---

Canonical page: https://fresh.ist/library/saved-application-state/
Official site: https://fresh.ist/ (fresh.ist only)
Generated: 2026-10-10
