Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Open

why does firefox not clear all data upon closure?

buy4048

I have tries all the "fixes" I could find online. Firefox does not clear all data upon closure, even though I have checked "Clear cookies and site data every time you close Firefox".

I have tries all the "fixes" I could find online. Firefox does not clear all data upon closure, even though I have checked "Clear cookies and site data every time you close Firefox".

All Replies (6)

What's your setting for the individual categories, and how do you tell it's not working?

Hi jbr, thanks for the quick response. I wasn't trying to disparage all the volunteers, you are all great.

I have attached screen shots of my settings under the "Privacy and Security" tab. My goal is to have firefox delete everything upon closing. This happened after a "refresh" of firefox.

Thanks and if you need more info please let me know.

That is the correct setting.

How do you tell after a restart that the requested site data has not cleared?

When I open settings and look at "privacy and security" I see this: Websites are currently using 137 MB of disk space.

That 137 MB number is not proof the setting failed. It counts all site data on disk, including data for any site you have set to Allow in the cookie exceptions, and data stored by extensions, which the clear on close setting does not touch. The way to check properly is to click Manage Data right after a restart and look at which sites are actually listed. If the same sites keep coming back, open the cookie exceptions under Privacy and Security and remove any Allow entries for them.

For a full wipe on close, the cookie checkbox alone is not enough. Go to the History section in the same Privacy and Security tab, turn on Clear history when Firefox closes, open its Settings, and check every box, including cache and offline website data. The cookie setting clears cookies and site data only, while the history setting is the one that clears the rest. If the number still stays high after that, it is worth checking whether the Refresh left an old profile folder behind, since that data sits on disk but is not part of the live profile.

And if you open the clear recent history dialog (Ctrl + Shift + Del), what sizes are there for the categories? (Also, if you open "Clear data for sites…" from the Privacy Settings, are any sites/items listed there?)

You'd basically have to disconnect any internet after shutdown, change your home / new tab to about:blank, and disable many services to not have "any" hits after the next launch — basically with clearing caches you also remove Mozilla–internal ones, so the browser eagerly has to pull its remote storages anew on the next launch, quickly priming couple dozen MBs of new fresh cached data for its basic services. You can observe this in about:cache — clicking on List Cache Entries in the "disk" section — you should see a) the entries there belong to Firefox endpoints or the home page, and b) all the cache keys created after the sanitizer based on the timestamps listed there — hinting at the storages being created fresh, after successfully removed on shutdown.

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.