Cookie Cleanup: Forget Closed Tabs
Очистка куки после закрытия вкладок
Deletes cookies and site data of sites whose tabs you closed, including partitioned cookies and containers. Keep list. No network.
What it does
Close the last tab of a site, and 15 seconds later its cookies and site data are gone. Sites on the keep list stay. This replaces Cookie AutoDelete, which no longer sees part of the cookies in current Firefox.
Since 2022 Firefox stores third-party cookies separately for each site. An add-on does not see those partitioned cookies unless it asks for them. Cookie AutoDelete does not, and it has not been updated since December 2022. This add-on reads all cookies, including partitioned ones: the cookies of a widget or tracker inside site A are deleted together with site A.
Deleted: cookies of the site and its subdomains, third-party cookies stored in that site’s partition, and localStorage, IndexedDB, and service workers of the site’s addresses you visited. A site is its registrable domain, from a built-in Public Suffix List copy: en.wikipedia.org and www.wikipedia.org are one site.
While a site has at least one open tab, in any window, its data is left alone. Firefox containers are kept apart: closing a site in a Work container keeps it in normal tabs, and the other way round. After installation the mode is Preview: nothing is deleted, and the popup and the log show what would be. Build the keep list, then switch to Delete.
“Keep always” and “Until restart” are one button for the current site. “Until restart” sites are cleaned at the next Firefox start, even if the tab is restored. Cookie AutoDelete patterns work: example.com, *.example.com, *, /regex/. A rule can be limited to one container. Importing a Cookie AutoDelete export turns the white list into Always and the grey list into Until restart.
“Clean closed sites now” and “Forget this site now” ask for confirmation. Sites closed just before quitting Firefox are cleaned at the next start. A log of recent cleanups is kept. There are no notifications and no tabs opened.
Firefox does not let add-ons clear the HTTP cache or the Cache API per site, so those are not deleted. Storage is deleted for the addresses the add-on saw in tabs or cookies. Private windows are not touched: Firefox clears them itself. Checked in desktop Firefox on macOS. Firefox for Android has not been checked. No network, analytics, or account. Rules, the log, and the list of hosts waiting for cleanup stay in this browser. Access to all websites is needed to see and delete their cookies.
What it looks like
Screenshots from the store materials.



Questions and answers
What can replace Cookie AutoDelete in Firefox?
This add-on deletes a site’s cookies and data 15 seconds after its last tab closes, including partitioned third-party cookies that Cookie AutoDelete cannot see in current Firefox. It imports Cookie AutoDelete’s whitelist and greylist.
Will it delete anything right after install?
No. It starts in Preview mode: nothing is deleted, and the log shows what would be. No network, analytics, or account.
Which browsers does it support, and what does it cost?
Free, with no ads or subscription. Firefox: https://addons.mozilla.org/firefox/addon/cookie-cleanup-closed-tabs/. Not published in the Chrome Web Store.
Related extensions
Permissions and technical details
Facts
| Firefox | cookie-cleanup-closed-tabs |
|---|---|
| Firefox id | cookie-cleanup@dmitryq |
| Permissions |
|
| Optional | none |
| Sites |
|
| Optional sites | none |
| Runs on | none |
| Firefox data collection | no data collected |