Clear Cache and Cookies on Close in Chrome: What the Setting Does (and Doesn't)
Clear cache on close in Chrome: what the built-in setting deletes, what it misses, how to keep sites signed in, and how to clean a site when its tab closes.
On this page · 10 sections
Searching for how to clear cache on close in Chrome usually means one of two things: you want privacy without remembering to clean up, or you are tired of a few sites piling up junk. Chrome has a built-in setting for this, but it does less than its reputation suggests, and more than you might want.
This guide explains exactly what the setting deletes, the one thing it never touches, how to keep chosen sites signed in, and how to clean only the sites you pick, the moment their tab closes.
The short answer#
- Built-in setting: Settings, then Privacy and security, then Site settings, then Additional content settings, then On-device site data.
- It clears cookies and site data, not the cache.
- Add exceptions for sites you want to stay signed in to.
- Want one site cleaned when its tab closes? That needs an extension.
Chrome's built-in option: delete site data on close#
- Open Settings, then Privacy and security, then Site settings.
- Click Additional content settings, then On-device site data. Or paste
chrome://settings/content/siteData. - Under default behavior, choose the option that deletes data sites have saved to your device when you close all windows.
From then on, when you close the last Chrome window, Chrome removes cookies and other site data for every site that is not on your exception list. Google's help page notes the trade-off: sites will probably still work, but they are less likely to remember you between visits.
What the setting does not do#
- It does not clear the cache. Cached images and files stay. Chrome has no built-in option to clear the cache on exit.
- It does not clear history or downloads. Those stay too.
- It does not run while Chrome is open. A site you visited in the morning keeps its cookies until you quit Chrome, which on a laptop that sleeps instead of shutting down may be days.
- It does not run if Chrome never quits. On a Mac, closing the window is not quitting; press Command+Q. On Windows, turn off Continue running background apps when Google Chrome is closed under Settings, then System, if you want Chrome to really exit.
Keep some sites signed in#
The setting is far more pleasant with exceptions. On the same On-device site data page, find the list of sites allowed to save data on your device and add the ones you use daily: your mail, your bank, your work tools. Use [*.]example.com to include subdomains.
Everything else is cleared on close. Your daily sites stay signed in. If you skip this step, expect to sign in to everything every morning, which is the most common reason people search why Chrome keeps logging them out.
Clean a site when its tab closes#
Some people want the opposite of Chrome's setting: keep everything, except a handful of sites that should be wiped as soon as you leave them. A shop full of trackers, a test server, a shared account, a site you only visit to read one article.
Chrome cannot do this on its own. An extension can, using Chrome's browsingData API. This is what the old Cookie AutoDelete did. When we checked on October 17, 2026, its Chrome Web Store page no longer showed a listing.
We built the same idea into Cleaner, our Chrome extension:
- Auto-clean wipes a site's data the moment its last tab closes. Free covers 1 site; Pro has no limit.
- Protected sites are never cleaned, even when you clean all sites. Free covers 5; Pro has no limit.
- It runs while Chrome is open, so it does not depend on you quitting the browser.
Clear the cache on a schedule#
Since Chrome cannot clear its cache on exit, the alternative is a schedule. Cleaner Pro includes scheduled cache cleaning: it clears old cache in the background every few hours, using the interval you set, and never touches cookies, so you are never signed out by it.
Is it worth it? Honestly, for most people the cache needs no schedule. Chrome manages its size by itself, and clearing it makes pages load slower the next time. Scheduled cleaning makes sense for privacy, for shared computers, or for developers who always want fresh files. If you only want a clean slate now and then, clear it by hand with Ctrl+Shift+Delete, as in our guide on how to clear cache in Chrome.
Guest mode and Incognito: cleaning without setup#
If the goal is "leave nothing behind" for one session, you may not need any setting at all:
- Incognito (Ctrl+Shift+N, or Command+Shift+N on a Mac) keeps cookies and site data only until you close every Incognito window. Your normal profile is untouched, so you stay signed in there.
- Guest mode, from the profile menu, opens a separate, empty profile for someone else. When they close it, Chrome deletes their browsing data.
Neither one hides your activity from the sites you visit, your employer or your internet provider. They only keep it off this computer. For a shared family laptop, a separate profile per person is usually better than either.
Which setup fits you?#
| You want | Use |
|---|---|
| Strong privacy, sign in daily to a few sites | Built-in delete on close + exceptions |
| Keep almost everything, wipe a few sites | Auto-clean on tab close for those sites |
| Fresh files every few hours, never signed out | Scheduled cache cleaning |
| A clean slate once in a while | Ctrl+Shift+Delete by hand |
| A shared or public computer | Guest mode or Incognito, which keep nothing after you close them |
Common mistakes#
- Forgetting the exceptions. Then you sign in to everything every day.
- Expecting the cache to be cleared. It is not; only site data is.
- Never actually quitting Chrome. The cleanup only runs when the last window closes and Chrome exits.
- Using auto-clean on sites you need. Put mail and banking on the protected list first.
Set it up once, the right way, and Chrome stays clean without ever signing you out of the sites you care about.
Frequently asked questions
Can Chrome clear the cache automatically when it closes?
Not the cache. Chrome's built-in option, under On-device site data, deletes cookies and other site data when you close all windows. Cached images and files are not part of that setting. To clear the cache automatically you need an extension with scheduled cleaning, or you clear it yourself with Ctrl+Shift+Delete.
How do I clear cookies when Chrome closes except for some sites?
Go to Settings, Privacy and security, Site settings, Additional content settings, On-device site data. Choose the option that deletes data when you close all windows, then add the sites you want to stay signed in to under the exceptions that are allowed to save data. Everything else is cleared on close.
Why does Chrome not clear cookies when I close it?
Chrome only clears on close after every Chrome window is closed and the browser has really quit. On Windows, Continue running background apps when Google Chrome is closed can keep it running. On a Mac, closing the window is not quitting; use Command+Q. Sites on your exceptions list also keep their cookies.
Is there a Cookie AutoDelete alternative for Chrome?
When we checked on October 17, 2026, the Cookie AutoDelete page on the Chrome Web Store no longer showed a listing. Its core idea, cleaning a site when you close its tab while keeping sites you trust, is available in other extensions, such as Cleaner's auto-clean with protected sites.