Chrome won't clear your Google and YouTube data — even if you tell it to

(Image credit: Future)

If you set Google Chrome to purge all website cookies and site data when you close the browser, it nonetheless keeps the site data for two specific websites: YouTube and Google itself.

So says Mac programmer Jeff Johnson, who documented the naughty behavior in a blog post earlier this month (as earlier reported by The Register).

"Perhaps this is just a Google Chrome bug, not intentional behavior, but the question is why it only affects Google sites, not non-Google sites," Johnson wrote. "I've tested using the latest Google Chrome version 86.0.4240.75 for macOS, but this behavior was also happening in the previous version of Chrome. I don't know when it started."

To set Google to get rid of all site cookies and data every time you quit the browser, go to Settings, then "Privacy and security" and then "Cookies and other site data" and then toggle the switch labeled "Clear cookies and site data when you quit Chrome."

In theory, this should work on all sites. But according to Johnson, it doesn't.

"Chrome exempts Google's own sites, such as Search and YouTube, from this setting," he wrote. "After I quit and relaunch, the [YouTube] cookies are deleted, but the database storage, local storage, and service workers are still there!"

He found the same behavior related to Google.com, but no other websites. 

How to get around the Google exemption

In order to get those sites to comply with Chrome's own rules, Johnson found that he had to manually add Google.com and YouTube.com to the list of sites that can never use cookies at all. (That likely means he'd have to log into Gmail every time he launched Chrome.)

We haven't tested this on Windows, but because Chrome behaves pretty much the same way on all desktop platforms, we'd expect the same behavior there. Retaining site data isn't that big a deal, but it does permit Google to track users who might have thought they were exempting themselves from such things. 

"Many users set Chrome to automatically delete cookies-and-site-data on exit ... to prevent being stalked around the web even though it often requires them to log back into websites the next time they visit due to their per-session cookies being wiped," The Register's Kieren McCarthy noted.

McCarthy reached out to Google for comment, and the search giant claimed it was an innocent mistake.

"We are aware of a bug in Chrome that is impacting how cookies are cleared on some first-party Google websites," Google told The Register. "We are investigating the issue, and plan to roll out a fix in the coming days."

Paul Wagenseil

Paul Wagenseil is a senior editor at Tom's Guide focused on security and privacy. He has also been a dishwasher, fry cook, long-haul driver, code monkey and video editor. He's been rooting around in the information-security space for more than 15 years at FoxNews.com, SecurityNewsDaily, TechNewsDaily and Tom's Guide, has presented talks at the ShmooCon, DerbyCon and BSides Las Vegas hacker conferences, shown up in random TV news spots and even moderated a panel discussion at the CEDIA home-technology conference. You can follow his rants on Twitter at @snd_wagenseil.

Latest in Browsers
iPhone 16 Pro Max shown in hand
Your iPhone has a custom voice command feature — here's how to use it
iPhone 16 Pro Max shown in hand
You can change your iPhone's default browser — here's how
Google Chrome on Android
How to stop your personal data from appearing in Google searches
Opera Air
I just tested the world’s first mindful browser — it’s calmly convinced me to ditch Google Chrome
A photo of the Google Chrome logo on a white background, displayed on the screen of a large MacBook Pro which is situated on a table with green foliage behind.
Google Chrome just got three new modes — and it's a game changer for performance
Google Calendar app on iPhone
Google Calendar just got the dark mode we’ve been waiting for — here’s how to activate it
Latest in News
Rendered images of rumored foldable iPhone.
Foldable iPhone report just revealed key details — here's what we know
Nintendo Switch 2
Nintendo Switch 2 rumored specs — here’s what we know so far
iPhone 17 Pro render
iPhone 17 Pro — 7 biggest rumored upgrades
CAD renderings of the Google Pixel 10 Pro XL
Pixel 10 leak could be good news for all Android phones
A magnifying glass on top of the Steam logo in a web browser
Valve just pulled a malicious game demo spreading info-stealing malware from Steam
Lewis Hamilton of Great Britain and Scuderia Ferrari looks on during Sprint Qualifying ahead of the F1 Grand Prix of China at Shanghai International Circuit in Shanghai, China, on March 21, 2025. (Photo by Song Haiyuan/Paddocker/NurPhoto via Getty Images)
How to watch Chinese Grand Prix 2025 online – stream F1 without cable, qualifying highlights