How to Stop Mac Opening Apps From Last Session
In this article
To stop your Mac from reopening apps and windows from your previous session, open System Settings, go to Desktop & Dock, and turn off "Reopen windows when logging back in." Then, before shutting down, uncheck "Reopen windows when logging back in" in the shutdown dialog (or simply log out and back in after turning the setting off). This stops macOS from restoring your previous app windows the next time you start up or log in, giving you a clean desktop instead of a pile of windows you did not ask for.
This is mostly about two separate behaviours that get confused: the login setting that reopens windows, and the "Resume" feature that reopens apps in the state you left them. The steps below cover both. Menu labels can differ slightly between macOS versions and regions, so if a label does not match exactly, look for the closest equivalent.
What You'll Need
- A Mac running a recent version of macOS (System Settings exists in macOS Ventura and later; older versions use System Preferences, where the same options live under Dock & Menu Bar or similar).
- An administrator account, in case you need to change a setting that applies to all users.
- A few minutes and a restart to confirm the change worked.
Step-by-Step
- Open System Settings. Click the Apple menu in the top-left corner and choose System Settings (called System Preferences on older macOS versions).
- Go to Desktop & Dock. In the sidebar, scroll down and click Desktop & Dock. On older versions, this may be under Dock & Menu Bar.
- Find the windows section. Scroll down to the section covering windows and the desktop. You are looking for the option labelled "Reopen windows when logging back in."
- Turn it off. Switch off "Reopen windows when logging back in." This is the master setting that controls whether macOS restores your previous windows at login.
- Check the shutdown dialog. When you next restart or shut down, a confirmation dialog appears. If you see a checkbox for "Reopen windows when logging back in," make sure it is unchecked before you click Shut Down or Restart. This checkbox can override the setting for that one shutdown, so it is worth checking every time until you are sure it stays off.
- Restart to test. Choose Apple menu > Restart, leave the reopen checkbox unchecked, and log back in. Your desktop should come up empty rather than restoring the apps you had open.
- Handle apps that reopen on their own. Some apps, not macOS, are responsible for reopening their own windows. If a specific app keeps coming back, open that app's settings and look for an option about restoring windows or reopening documents at launch, and turn it off. The exact wording varies by app.
- Quit apps before shutting down if needed. As a reliable habit, press Command-Q to quit the apps you do not want reopened, or use Option-Command-Q to log out, which closes apps cleanly. This is not required once the setting is off, but it guarantees a clean start.
Common Mistakes
- Only changing the setting and ignoring the shutdown checkbox. The checkbox in the shutdown dialog can reopen windows for that session even when the main setting is off. Always glance at it before confirming a restart.
- Confusing Resume with login windows. Turning off the login setting stops windows reopening at login, but an app can still restore its own last state when you launch it manually. That is app behaviour, not the system setting.
- Looking in the wrong pane. The option lives in Desktop & Dock, not in General or Privacy & Security. If you cannot find it, use the search field at the top of System Settings and type "reopen."
- Expecting open apps to close. This setting affects what happens at the next login, not what is currently running. Apps stay open until you quit them or restart.
- Assuming it applies to all users. Settings can be per-user. If another account on the Mac still reopens windows, sign in to that account and change it there too.
Tips
- If you only occasionally want a clean start, leave the setting on and simply uncheck the box in the shutdown dialog when you need it.
- Use Command-Option-Esc (Force Quit) only when an app is frozen; quitting normally with Command-Q is safer and lets apps save their work.
- Restarting rather than shutting down is often enough to clear the window state, and it is quicker.
- If you share the Mac, set up separate user accounts so each person's window behaviour stays independent.
- After changing the setting, do one full restart to confirm the behaviour before assuming something is broken.
Troubleshooting
If windows still reopen after a restart, work through these checks in order.
- Restart again and watch the dialog. Confirm the reopen checkbox is unchecked at the moment you click Restart. It is easy to click through without reading.
- Check the setting is still off. Return to System Settings > Desktop & Dock and confirm the toggle has not been switched back on, perhaps by another user or a management profile.
- Quit apps manually before shutting down. If the problem persists, quit everything with Command-Q first. If the desktop then stays clean, the culprit is likely an individual app restoring itself, not macOS.
- Test in a new user account. Create a temporary standard user account, log in, and restart. If windows do not reopen there, a setting or login item in your main account is responsible.
- Check login items. Open System Settings > General > Login Items and review what is set to open at login. Remove anything you do not want launching automatically.
- Update macOS. If the toggle appears greyed out or will not stick, install any available system update, since odd behaviour in Settings is sometimes fixed by an update.
Frequently Asked Questions
Does this delete anything?
No. Turning off window restoration only changes what opens at login. Your files, documents and app data are untouched.
Will my unsaved work be lost?
Quitting or restarting can discard unsaved changes in apps that do not autosave. Save your work before restarting, especially in apps without automatic saving.
Why does one app still reopen?
That app is restoring its own windows. Look in the app's own settings for an option about reopening windows or documents at launch, and turn it off there.
Where is this setting on older macOS versions?
On versions before Ventura, open System Preferences and look under Dock & Menu Bar for the same reopen windows option. The wording is similar.
Does this affect tabs in Safari or other browsers?
Browsers often have their own session restore feature. Check the browser's settings for an option about reopening tabs from the last session if you want those to stay closed too.
Can I turn it back on later?
Yes. Return to the same Desktop & Dock setting and switch it back on, or tick the checkbox in the shutdown dialog the next time you restart.