Fix Edge Clear Browsing Data on Close Not Working
In this article
Yes, you can fix Microsoft Edge's 'Clear browsing data on close' not working by verifying settings, resetting browser permissions, and ensuring proper profile configuration. This feature automatically deletes browsing history, cookies, and cached files when you close Edge, enhancing privacy — but it can fail due to misconfigured settings, extensions, or corrupted profiles.
What You'll Need
- Microsoft Edge browser (up to date)
- Administrator access to your Windows 11 device
- Backup of important bookmarks or saved passwords (optional but recommended)
Step-by-Step
- Open Microsoft Edge and click the three-dot menu (…) in the top-right corner. Select Settings.
- Navigate to Privacy, search, and services in the left sidebar.
- Scroll down to the Clear browsing data section and click Choose what to clear every time you close the browser.
- Ensure the toggle for Clear data when you close the browser is turned on. If it’s off, turn it on now.
- Check the boxes for the types of data you want deleted — such as Browsing history, Cookies and other site data, and Cached images and files.
- Close Edge completely — make sure no background processes remain. Right-click the taskbar, open Task Manager, and end any remaining Microsoft Edge tasks if needed.
- Reopen Edge and browse for a few minutes, then close it again.
- Reopen Edge and go back to Settings > Privacy, search, and services. Check if your selected data (e.g., history) has been cleared. If not, proceed to troubleshooting.
- If the issue persists, return to Settings > Privacy, search, and services, and under Clear browsing data, click Choose what to clear and manually delete data. This confirms the browser can still clear data — ruling out deeper corruption.
- To rule out extension interference, go to Settings > Extensions. Disable all extensions, then restart Edge and test the on-close feature again.
- If it works with extensions off, re-enable them one by one to identify which one is blocking data clearance. Remove or update problematic extensions.
- Check if you’re using a work or school account. Some organization policies prevent automatic data clearing. Go to to see if restrictions apply.
- If no policy is in place, reset Edge settings: go to Settings > Reset settings, then click Restore settings to their default values. Confirm the action. This won’t delete bookmarks or saved passwords but resets permissions and site data.
- After reset, re-enable the 'Clear data when you close the browser' option and test again.
- If still not working, create a new local user profile in Windows 11: go to Settings > Accounts > Family & other users > Add account, then choose Set up without Microsoft account (local account). Log into the new profile and test Edge there.
Common Mistakes
- Assuming the feature works immediately without fully closing and reopening Edge — background processes can keep the session alive.
- Forgetting to disable extensions that block cookies or scripts, which can interfere with data-clearing triggers.
- Overlooking policy restrictions in work or school environments where IT administrators disable privacy features.
- Not restarting Edge completely after changing settings, causing the new configuration to not take effect.
- Expecting passwords or saved form data to be cleared — only selected items are deleted unless explicitly chosen.
Tips
- Always close Edge using the 'X' button or right-click the taskbar icon and select 'Close all windows' to ensure full shutdown.
- Use InPrivate mode for sensitive browsing — it automatically clears data on exit regardless of settings.
- Regularly update Edge via Settings > About Microsoft Edge to ensure bug fixes are applied.
- Check Task Manager after closing Edge to confirm no lingering processes are running.
- Bookmark important sites before testing data-clearing features, in case bookmarks are accidentally cleared (though they normally aren’t).
Troubleshooting
If the feature still doesn’t work, verify that Edge is not set to continue running in the background. Go to Settings > System > Notifications & focus in Windows 11, then scroll to Background apps. Ensure Microsoft Edge is set to 'Never' or 'When battery is above level' — but ideally 'Never' for testing. Also, check Windows Settings > Apps > Startup and disable Edge if it’s set to launch at startup.
Another cause could be corrupted user profile data. Navigate to C:\Users\[YourUsername]\AppData\Local\Microsoft\Edge\User Data and rename the Default folder to Default.old. Restart Edge — it will create a new profile. Re-enable the clear-on-close setting. Note: this removes site permissions and some settings, but not bookmarks.
If you're on a managed device, contact your administrator — group policies may override local settings. Use gpresult /h report.html in Command Prompt (run as admin) to check applied policies.
As a last resort, repair or reinstall Edge. Open Windows PowerShell as admin and run Get-AppxPackage -allusers Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}. This reinstalls Edge without data loss.