Setup 5 min read
How to automatically clear Chrome history on exit
Chrome has no built-in “clear history when closing” option. Start with history only, check the result once, and understand what “on exit” can and cannot promise.
By Kuuloa Updated
The short version
Auto Clear History on Exit starts cleanup when the last Chrome window closes and keeps the profile available so the cleanup can finish. If Chrome stops first, for example after an explicit Quit, the cleanup is retried on the next startup.
Chrome's on-close setting clears cookies, not history
Chrome has a setting called Delete data sites have saved to your device when you close all windows. You'll find it under Settings › Privacy and security › Site settings › Additional content settings › On-device site data. Google explains it in Learn about on-device site data in Chrome (opens in a new tab).
That setting removes data websites store on your computer, such as cookies, so sites are less likely to remember you between visits. It does not delete your browsing history, the list of pages on Chrome's History page.
Microsoft Edge and Firefox include a built-in option to clear browsing history when the browser closes. Chrome does not, which is why an extension is needed for that step.
Choose the data you actually want to remove
Deleting browsing history and deleting cookies are different choices. If your goal is to remove the list of pages you visited, start with Safe: History only, the default for new installs. It leaves cookies, cache, and local storage alone.
The extension can also clear cache, cookies, download history, form data, and local storage. Standard adds cache. Strong adds cookies, download history, form data, and local storage, and signs you out of websites. Selected types are cleared for all time; this is not a “last hour only” cleanup. Saved passwords are not a cleanup type.
Set it up in your normal Chrome profile
- Install from the Chrome Web Store in the Chrome profile where you want cleanup to run. Each profile has its own extension settings.
- Open the extension. Check that Enabled is on and that nothing is paused.
- Keep Safe mode for your first run. If you change data types, choose Review changes, read what will be deleted and kept, then choose Save settings. Saving does not delete anything. Until you save, automatic cleanup keeps using your saved settings.
- Planning to clear cookies? Add the sites you want to stay signed in to Keep login first, and read the warning before you turn cookie cleanup on. See how to keep useful logins.
- Choose notifications. A notification appears after every cleanup by default. If you do not want them, turn off Show a notification after each cleanup under Notifications. Notifications close on their own, and the Results tab always shows the latest outcome.
You do not need to turn on every data type to use automatic history cleanup.
Run one deliberate check
Visit a harmless page you can recognize on Chrome's History page. Selected types are cleared for all time, so only test when you are ready to remove them.
- Close every Chrome window in that profile. Closing a tab, or one of several windows, is not the trigger.
- Open Chrome again and open the extension.
- Open the Results tab. Check that Browsing History shows that Chrome reported completion, then look at Chrome's History page.
The result describes Chrome's response to the cleanup request. That is more useful than assuming that closing a window must have completed it. If you see a failure, a skipped step, or no recent run, use the troubleshooting checklist.
Understand the timing
Cleanup starts as soon as the last window closes. The extension uses Chrome's background permission to keep the profile available after that, so the cleanup and its notification can finish. Chrome's own background-app settings still apply.
Chrome does not give extensions a guaranteed shutdown event. An explicit Quit, a force quit, a crash, or an operating-system shutdown can still interrupt the work. The extension keeps a pending marker and retries the cleanup on the next startup, and the Results tab shows that it was retried. This is a fallback, not a promise that the data is already gone while Chrome is closed.
When timing matters, use Clear Now while Chrome is still running, review the list, and check the result before you quit. Do not rely on a forced shutdown as a deletion step.
On some platforms the background permission can keep Chrome running without open windows and may let Chrome start at login. On macOS, Chrome 109 and later does not add a login item automatically.
Keep local history separate from account activity
This extension deletes Chrome's local browsing data. It does not delete search or browsing activity saved in your Google Account; manage that in Google's Web & App Activity settings. Clearing cookies also does not remove the Google Account from your Chrome profile.
For a one-off manual cleanup, Chrome's own Delete browsing data dialog is still available. Google's browsing-data help page (opens in a new tab) explains its categories and account-related settings.
