Disable Clear Browsing Data on Close in Edge
In this article
Yes, you can stop Microsoft Edge from clearing browsing data when it closes by adjusting the browser's clear-on-exit settings. This prevents automatic deletion of your history, cookies, and other site data every time you shut the browser, which is useful if you want to keep your session active or retain login states. However, this also means your browsing traces remain unless manually cleared. The steps below apply to Microsoft Edge on Windows and macOS desktop versions, where menu labels may vary slightly by system but the settings are consistent.
What You'll Need
- A device running Microsoft Edge (Windows, macOS, or compatible system)
- Access to the Edge browser with administrative permissions if managed by an organization
- Internet connection to verify settings take effect
Step-by-Step
- Open Microsoft Edge on your device. Click the three horizontal dots (…) in the top-right corner of the browser window to open the main menu.
- From the dropdown menu, select Settings. This opens the Edge settings page in a new tab.
- In the left sidebar, click Privacy, search, and services. This section contains all data-handling and tracking prevention options.
- Scroll down to the Clear browsing data section. Click the toggle next to Always clear when you close the browser to turn it off. If the toggle is blue, it is active; turning it off changes it to gray.
- Once disabled, you can verify the change by checking that no items are selected under the list of data types (e.g., Browsing history, Cookies, Cached images). Even if items are listed there, they will not be cleared on exit because the main toggle is off.
- Optionally, to customize what data is cleared if you re-enable this later, click Choose what to clear and adjust the checkboxes for history, cookies, cached data, passwords, etc.
- Close the Settings tab. The change takes effect immediately—no restart is needed.
Common Mistakes
Users often leave the Always clear when you close the browser toggle enabled while trying to preserve data, not realizing it overrides all other settings. Another frequent error is assuming that disabling sync or using InPrivate mode affects this behavior—it does not. Some users also mistakenly edit group policies or registry settings when a simple toggle in the UI would suffice, especially on personal devices. Also, confusing the Clear now button with the automatic clear-on-close function leads some to believe the setting isn’t working when it actually is.
Tips
If you want partial privacy, disable the clear-on-close feature but manually clear specific data types occasionally via Settings > Privacy, search, and services > Clear browsing data. Use bookmarks to save important pages instead of relying on history. For shared computers, consider using Windows Hello or separate user profiles instead of automatic data clearing. You can also create a shortcut to quickly access the clear browsing data menu for on-demand cleaning.
Troubleshooting
If the setting reverts after restarting Edge, your browser may be managed by an organization or policy. Check for a message at the top of the Settings page indicating administrative control. In such cases, contact your IT administrator, as local changes cannot override enforced policies. If the toggle does not respond when clicked, try restarting Edge first. If the issue persists, update Edge to the latest version via Settings > About Microsoft Edge. If corruption is suspected, reset Edge settings by going to Settings > Reset settings > Restore settings to their default values (note: this clears site permissions and some customizations). After resetting, recheck the clear-on-exit toggle. If Edge still clears data on close despite the setting being off, verify no third-party cleaning tools or extensions (like privacy cleaners) are set to run on browser shutdown.
Frequently Asked Questions
Does disabling clear on close keep my passwords saved?
Yes, as long as you’ve allowed Edge to save passwords and the clear-on-close setting is off, your saved passwords remain intact.
Will my browsing history still sync across devices?
Yes, if you’re signed into a Microsoft account with sync enabled, your history and other data will continue to sync regardless of the clear-on-close setting.
Can I clear data manually after disabling auto-clear?
Yes, go to Settings > Privacy, search, and services > Clear browsing data to delete specific data types at any time.
Does this affect InPrivate mode?
No. InPrivate windows always clear data when closed, regardless of this setting. This only affects regular browsing sessions.
Why does Edge still clear data even after I turned it off?
This may happen if group policies, third-party cleaners, or extensions are forcing a clear. Check for enterprise management and disable conflicting extensions.
Is it safe to keep browsing data between sessions?
It’s safe for personal devices. On shared computers, keep the clear-on-close feature enabled or use separate user accounts for privacy.