Clear Browsing Data on Close in Microsoft Edge
In this article
To automatically clear browsing data when closing Microsoft Edge, enable the 'Clear browsing data on close' setting in the browser's privacy settings. This feature lets you select which types of data—like history, cookies, and cached files—are deleted each time you shut the browser.
How It Works
Microsoft Edge includes a built-in privacy feature that allows users to automatically delete specific browsing data every time the browser is closed. This setting does not delete data during regular browsing but activates only when all Edge windows are closed. Once enabled, Edge checks your selected categories—such as browsing history, cookies, cached images and files—and removes them upon exit. This helps maintain privacy, especially on shared or public computers, by ensuring no trace of your session remains.
The feature works across all profiles in Edge, but settings are applied per profile. If you use multiple profiles (e.g., work and personal), each must be configured separately. Data is only cleared when the browser is fully shut down, not when individual tabs or windows are closed. Restarting Edge after closure starts a fresh session with no saved history or cookies from the previous session—assuming those items are selected for deletion.
Background and Privacy Context
Modern web browsers collect various types of data to improve performance and user experience. This includes browsing history (sites you’ve visited), cookies (small files that remember login states and preferences), cached files (temporary copies of web content), and site permissions. While useful, this data can pose privacy risks if left unmanaged—especially on devices used by multiple people.
Microsoft Edge, based on the Chromium engine, shares many privacy features with other Chromium browsers like Google Chrome. However, Edge integrates more tightly with Windows, offering additional controls through Windows Settings and Microsoft account sync. The 'Clear browsing data on close' option reflects growing user demand for automatic privacy tools, especially following regulatory changes like GDPR and CCPA, which emphasize data minimization and user control.
How to Enable Automatic Data Clearing
Follow these steps to set up automatic data clearing in Microsoft Edge:
- Open Microsoft Edge.
- Click the three-dot menu (…) in the top-right corner.
- Select Settings.
- In the left sidebar, click Privacy, search, and services.
- Scroll down to the Clear browsing data section.
- Click Choose what to clear every time you close the browser.
- Toggle on Clear browsing data on close.
- Select the types of data to delete by checking the boxes next to each item:
- Browsing history
- Download history
- Cookies and other site data
- Cached images and files
- Active tabs and tab groups (if using Tab Groups)
- Site permissions (e.g., location, microphone access)
After making selections, close all Edge windows to trigger the cleanup. Reopen Edge to confirm the data has been cleared. Note that saved passwords and autofill data are not deleted by this feature unless manually included in a full data clear.
What Data Is Affected and What Is Preserved
When enabled, the automatic clear feature targets specific data types, but not all browser data is removed. The following are typically deleted if selected:
- Browsing history: Removes the list of visited websites from the history menu.
- Download history: Clears the record of downloaded files (does not delete the actual files).
- Cookies and site data: Logs you out of websites and resets site preferences.
- Cached images and files: May slow down future page loads until new content is cached.
Data that is not automatically cleared includes:
- Saved passwords (unless manually cleared)
- Autofill data (addresses, payment methods)
- Bookmarks and favorites
- Extensions and their settings
- Microsoft account sync data (unless sync is turned off)
This selective approach allows users to maintain convenience features while still protecting session privacy.
Common Problems and Misconceptions
Some users report that data appears to persist after enabling this feature. This can happen for several reasons:
- Browser not fully closed: Edge may continue running in the background even after all windows are shut. Check Task Manager for 'Microsoft Edge' processes and end them if necessary.
- Synced data: If signed in to a Microsoft account, browsing history and cookies may reappear after syncing from the cloud.
- Incorrect settings: Users may forget to check all desired data types. For example, leaving 'cookies' unchecked means login sessions persist.
- Extensions storing data: Some extensions save data independently and are not affected by Edge’s clearing function.
A common misconception is that this setting deletes all personal data permanently. In reality, it only clears local browser data. Files downloaded to your computer, bookmarks, and passwords saved in Windows Credential Manager remain intact.
Safety and Privacy Considerations
Automatically clearing browsing data enhances privacy, particularly on shared devices. It reduces the risk of others accessing your browsing habits, login sessions, or cached content. However, it also removes some convenience features, such as staying logged into websites or fast-loading cached pages.
For maximum privacy, combine this setting with other practices:
- Use InPrivate (incognito) mode for sensitive browsing sessions.
- Disable sync if you don’t want data stored in the cloud.
- Regularly review site permissions and remove unnecessary ones.
- Ensure your Microsoft account has two-factor authentication enabled.
Be aware that while local data is cleared, your internet service provider, employer, or network administrator may still log your activity. This setting only affects data stored on your device, not external tracking.
Frequently Asked Questions
Does clearing data on close delete my saved passwords?
No, saved passwords are not deleted when you enable 'Clear browsing data on close'. Passwords stored in Edge’s password manager or Windows Credential Manager remain unless you manually clear them in settings.
Why is my browsing history still visible after closing Edge?
This may happen if Edge is still running in the background or if sync is restoring history from your Microsoft account. Ensure all Edge processes are closed and consider turning off sync if you want full local privacy.
Can I choose which sites to keep data for?
Yes. You can add exceptions by going to Settings > Cookies and site permissions > Manage and delete cookies and site data > Add under 'Never clear'. This lets you stay logged into specific sites.
Does this work in InPrivate mode?
InPrivate mode already clears all data on close by design. Enabling 'Clear browsing data on close' applies only to regular browsing sessions and has no effect on InPrivate windows.
Is this feature available on all devices?
Yes, the setting is available on Windows, macOS, iOS, and Android versions of Microsoft Edge, though the menu labels may vary slightly between platforms.
Does clearing cached files slow down browsing?
Yes, clearing cached images and files means websites must reload content each time, which can make pages load slower, especially on slower connections. Weigh the privacy benefit against the performance cost.