Auto Clear History on Exit

Chrome extension by Kuuloa

Clear Chrome history when the last window closes.

Chrome has no built-in “clear history on exit” option. This extension adds that step. It starts with browsing history only, so cookies and sign-ins are left alone unless you choose otherwise.

Cleanup starts when the last Chrome window closes. If Chrome exits before it finishes, the extension retries on the next startup. Completion before exit is not guaranteed.

Illustration of the extension's Settings tab with the Safe (history only), Standard (history and cache), and Strong clear modes and a last-clear status
Illustration with example data.

Why an extension

Chrome can clear cookies on close. Not history.

Chrome's built-in setting Delete data sites have saved to your device when you close all windows removes on-device site data such as cookies. It does not delete your browsing history. Microsoft Edge and Firefox include a built-in option to clear history when the browser closes; Chrome does not.

Auto Clear History on Exit fills that gap: close the last window, and the history cleanup you chose begins. Compare it with Chrome's setting

Source: Google Chrome Help, “Learn about on-device site data in Chrome” (opens in a new tab)

01 / A useful default

Start small. Choose what goes.

There is no need to clear everything. The default removes browsing history only. Cache, cookies, download history, form data, and local storage are separate choices. Selected types are cleared for all time.

Safe

History only

The default. Cookies, cache, and site storage are left alone, so it is less likely to sign you out.

Standard

History + cache

A light everyday cleanup that also clears cached files.

Strong

Cookies and storage too

Adds cookies, download history, form data, and local storage. Signs you out of websites, including Google, and may pause Chrome Sync.

See what will be deleted before you save

Changes to data types and protected sites stay a draft until you choose Review changes and then Save settings. The review lists what will be deleted and what will be kept. Saving does not delete anything; the new settings apply to the next cleanup. Clear Now shows a similar review before it deletes.

Review settings before saving: Browsing History and Download History deleted for all sites; Cache, Local Storage, and Cookies deleted except protected sites; Form Data kept; a note that saving does not run cleanup
The review shown before saving, in version 2.2 with example selections.
The extension's Settings tab: Safe, Standard, and Strong clear modes, a switch for each data type, the Notifications setting, and the Clear Now button
Settings tab in version 2.2, with example selections. New installs start with Browsing History only.
Keep login tab with Gmail and GitHub configuration templates, the Also protect cache and local storage option, and a field for an additional sign-in site
Keep login tab in version 2.2, with example selections.

02 / Keep what you need

Keep the sign-ins you choose.

Cookie cleanup is off by default. If you turn it on, set up Keep login first: tick the Gmail or GitHub configuration template, or add your own sign-in sites. Chrome skips their cookies during deletion. They are excluded, not deleted and restored afterward.

If you also clear cache or local storage, save Also protect cache and local storage to exclude the same sites from those deletions. Browsing history is still cleared for protected sites.

Templates are configuration shortcuts, not login detection, and cannot guarantee that every session survives. Organization single sign-on (SSO) and other sign-in sites may need to be added separately. Removing Google cookies may pause Chrome Sync.

Understand login protection

03 / Know what happened

Less guessing. A result for each type.

The Results tab reports each data type separately: whether Chrome reported completion, a task failed or was skipped, or completion could not be confirmed after an interruption. Results describe Chrome's response; the extension does not independently scan for remaining data. After a cleanup you can open a protected service and record whether you stayed signed in.

  • Notifications after every cleanup, on by default, with one switch to turn them off. They close on their own. (Version 2.2.1)
  • Pause automatic cleanup for 30 minutes, 1 hour, the rest of today, or until you resume.
  • Clear Now runs a cleanup while Chrome is open, after a review of what will be deleted.

Troubleshoot a cleanup

Illustration of the last-clear status, pause options for 30 minutes, 1 hour, the rest of today, or until resumed, and the Clear Now button
Illustration with example data. The Results tab adds an outcome for each data type.

Privacy & limits

Know the scope.

The extension does not store or send browsing URLs. Its settings and reports stay in this browser.

What happens if Chrome exits before cleanup finishes?

Why does it ask for the “background” permission?

Does it delete my Google Account activity?

Are saved passwords deleted?

Will every login be preserved?

What does the extension store or send?

Which languages are supported?

Is the source code available?

Do these pages track me?

Let the end of a session start the cleanup.

Start with history only. Add other data types after you understand their effects.

Chrome is a trademark of Google LLC.