How to auto-delete cookies on tab close in Chrome

TL;DR: Chrome cannot auto-delete cookies per tab — only per browser exit. To get per-tab cleanup, install a Manifest V3 extension like CookieVault Guardian, add the sites you trust to the whitelist, and Guardian handles the rest: cookies, localStorage, IndexedDB, and Cache Storage are cleaned the moment the last tab on a domain closes.

Auto-deleting cookies on tab close is the practice of removing all browser storage for a domain the moment its last tab closes, while the browser continues running and other tabs remain unaffected. Chrome’s built-in “Delete cookies and site data when you close all windows” setting only works on full browser exit — not per-tab. For per-tab cleanup you need a Manifest V3 extension.

Why per-tab cleanup matters

In short: Every non-whitelisted site you visit deposits cookies, localStorage, and IndexedDB entries that survive across sessions and can be used for tracking. Manually clearing them is tedious; “clear on browser exit” doesn’t help because most people don’t close their browser for days. Per-tab cleanup is the surgical middle ground.

Three reasons per-tab auto-delete is the right privacy posture for most users:

Chrome’s built-in options (and their limits)

In short: Chrome offers “Clear on exit” and manual per-site deletion, but neither gives you automatic per-tab cleanup. The comparison table below shows why an extension is the only path to that workflow.

FeatureChrome built-in “Clear on exit”Chrome manual per-siteCookieVault Guardian
Triggers onBrowser exit onlyManual actionTab close
GranularityAll sitesOne site at a timePer domain, automatic
WhitelistNoNoYes (with wildcards)
Cleans localStorageYes (on exit)Yes (per site)Yes (on tab close)
Cleans IndexedDBYes (on exit)Yes (per site)Yes (on tab close)
Requires user actionClose browserNavigate to settingsNothing (after setup)

Setup: eight steps to working per-tab cleanup

  1. Install CookieVault Guardian from the Chrome Web Store (or Edge Add-ons / Firefox Add-ons / GitHub CRX).
  2. Pin the toolbar icon so the shield is visible for one-click whitelist access.
  3. Visit sites you want to keep logged in — email, bank, work tools, password manager.
  4. Click the Guardian icon → “Add to whitelist” on each. Subdomain inheritance is on by default.
  5. Verify the whitelist in Settings → Whitelist tab.
  6. Browse normally and close a non-whitelisted tab. Guardian auto-cleans.
  7. Reopen the site to verify — you should be logged out, localStorage gone.
  8. Tune cleanup targets (optional) — toggle individual storage types if a site breaks.

Starter whitelist recommendation

A five-domain starter list that covers most users’ critical logins:

Everything else cleans on tab close by default. Add more as you discover sites that break.

See also