How to stop Mac apps reopening old windows (the three settings behind it)
You open Preview to look at one PDF and eleven old ones pile onto the screen. You restart for an update and every app you had open comes back with it. If you want to stop Mac apps reopening old windows, the frustrating part is that there isn't one switch: macOS has three separate mechanisms that all look the same from the outside, plus a few apps that keep their own memory on top. Here's what each one does, where to turn it off, and the two modifier keys that override all of it for a single launch.
Why your Mac reopens old windows
Since OS X Lion, macOS has had a feature Apple originally called Resume: when you quit an app with windows still open, the system saves those windows and puts them back the next time the app launches. It's aimed at document apps (Preview, TextEdit, Pages, Numbers, Xcode) but any app that adopts the system's state restoration takes part.
Three different things can trigger it, and they're controlled in three different places:
| What happens | What's doing it | Where to change it |
|---|---|---|
| An app reopens its old documents when you launch it | App window restoration | System Settings → Desktop & Dock |
| Every app you had open comes back after a restart | Session restore | The restart / shut down dialog |
| One app (a browser, usually) restores tabs and windows regardless | The app's own setting | That app's Settings |
| An app launches by itself at login, with no windows to restore | A login item, not restoration | Login items and startup apps |
Work out which row you're in first. Most "the setting doesn't work" threads are someone fixing row one when their problem is row two.
Stop apps reopening windows when you launch them
This is the per-app behaviour: quit Preview with five PDFs open, relaunch it tomorrow, and all five are back.
- Open System Settings → Desktop & Dock.
- Scroll down to the windows settings.
- Turn on Close windows when quitting an application.
The name is the confusing part. It doesn't change what the red close button does, and it doesn't quit anything. It means "when I quit an app, forget its windows". With it on, relaunching a document app gives you an Open dialog or a template chooser instead of your old documents. Individual documents still remember their own size and position when you open them again.
On macOS Monterey and earlier the same checkbox lives in System Preferences → General, worded "Close windows when quitting an app".
Stop everything reopening after a restart
This one is separate, and it's the one people miss. When you choose Restart, Shut Down or Log Out from the Apple menu, the confirmation dialog has a checkbox: Reopen windows when logging back in. Untick it and your next login starts clean.
Two things make it feel like it isn't working:
- macOS remembers your last choice. Tick it once, by accident, and it stays ticked for every restart after that. Untick it once and that sticks too.
- Restarts you didn't start yourself — a software update, a crash — don't show you the dialog, so whatever the checkbox was last set to applies.
If apps still launch after you untick it, they're almost certainly login items, which is a different problem with a different fix.
Override it for one launch: Shift and Option
You don't have to pick a policy forever. Two modifier keys flip the behaviour for a single quit or launch, whichever way your setting is.
- Hold ⇧ Shift while you open an app. It ignores the windows it had open last time, just for this launch. Nothing in settings changes. This is Apple's own suggested fix for an app that's choking on a document it keeps trying to restore.
- Hold ⌥ Option in the app menu. Quit changes to its opposite. With "Close windows when quitting" on, it reads Quit and Keep Windows. With it off, Quit and Close All Windows. The shortcut is ⌥⌘Q either way.
There's also the low-tech version: close the windows with ⌘W before you quit. Windows that are already closed aren't saved, so there's nothing to bring back.
A sensible setup for most people: leave restoration off (the checkbox ticked) for a clean start, and reach for ⌥⌘Q on the days you're mid-project and want an app to pick up exactly where you stopped.
Apps that keep their own memory
Some apps ignore the system checkbox, or add their own layer on top.
- Safari has Safari → Settings → General → Safari opens with, which chooses between a new window, a new private window, or all (non-private) windows from your last session. Apple notes some of these options only appear when "Close windows when quitting an application" is turned on — because at that point Safari is the only thing deciding.
- Chrome, Edge, Arc and other Chromium browsers have an On startup setting; "Continue where you left off" restores your tabs no matter what macOS is set to.
- Single-window apps like Messages and Music aren't restoring documents at all; they just remember where their one window was. That's normal, and the checkbox doesn't affect it.
- Developer tools and editors (VS Code, JetBrains IDEs, terminals) usually have a "restore previous session" option of their own. If a code editor reopens projects, look in its settings before the system's.
When one app still won't let go
Two more targeted fixes, for when a single app keeps restoring windows you don't want and the global setting isn't the answer.
Turn restoration off for one app only. Apps that use the system's state restoration read a per-app preference. In Terminal, find the app's bundle ID and set it:
osascript -e 'id of app "Preview"'
defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false
Replace com.apple.Preview with whatever the first command printed for
your app. To undo it, run defaults delete <bundle id> NSQuitAlwaysKeepsWindows. Apps that manage their own sessions (most
browsers) ignore this key, so use their settings instead.
Clear the saved state. Restored windows live in
~/Library/Saved Application State, one <bundle id>.savedState folder per
app. Quit the app, then delete its folder (in Finder, ⇧⌘G and paste the
path). The next launch starts empty. This is the fix when an app crashes on
launch because it keeps reopening a broken window.
The trade-off: a clean start vs. getting your layout back
Turning restoration off has a cost people only notice a day later: window restoration is the closest thing macOS has to layout memory. It's not a very good one. It restores documents, not arrangements, and it has no idea your editor and browser were meant to sit side by side. But switch it off and every app opens wherever it likes.
The answer we'd suggest is to stop relying on the system to remember positions and make putting windows back quick instead. That's what Let's Tile is for: press ⌘↵, a grid drops over the window, steer with the arrow keys and press ↵. The free 3 × 2 grid covers thirds, two-thirds, top and bottom halves and full screen (Pro adds side-by-side halves and quarters), so a fresh-start Mac is a few keystrokes from your usual layout. We wrote more about the gap macOS leaves in how to save a window layout on Mac, and about what macOS does store in making your Mac remember window size and position.
Frequently asked questions
Why do my Mac apps keep reopening old windows?
Because "Close windows when quitting an application" is off in System Settings → Desktop & Dock, so each app restores the windows it had open when you quit it. Turn it on, or hold Shift while launching the app to skip restoration once.
How do I stop apps reopening after a restart on Mac?
Untick Reopen windows when logging back in in the restart or shut down confirmation dialog. macOS remembers the choice. If apps still launch, check your login items.
What does "Close windows when quitting an application" mean?
It means macOS forgets an app's open windows when you quit it, so the next launch starts fresh. It has nothing to do with the red close button, and it doesn't make closing a window quit the app.
How do I quit an app but keep its windows for next time?
Hold Option and choose Quit and Keep Windows from the app menu, or press ⌥⌘Q. It works even with the system setting turned on.