Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of Auto-Clear Site Data

Auto-Clear Site Data by byuserforuser

Finally!!! successor to `Cookie AutoDelete` extension |🧹 Automatically clears site data (cookies, local storage, IndexedDB, Cache, SW) when you close a site's last tab, with full support for Firefox Containers 📦 and Firefox for Android 📱.

Available on Firefox for Android™Available on Firefox for Android™
3.8 (4 reviews)3.8 (4 reviews)
25 Users25 Users
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
PopupPopupSettings page
About this extension
Auto-Clear Site Data

Automatically clears cookies, localStorage, indexedDB, cache, and service workers when you leave a site — whether you close a tab, navigate away, or the browser discards it. Stay private and keep your storage clean without lifting a finger. 🧹



✨ What It Does
  • Auto-clears on exit — Data is wiped after a configurable delay (0–3600s) when you leave a site
  • Clear on Startup — Optionally clean up leftover data from your last session
  • Manual "Clear Now" — One-click clearing with full control over what gets removed

🎛️ Flexible Exemptions

Create independent exemption rules for any site or pattern:
  • Whitelist mode — Clear everything except your exempted sites
  • Blacklist mode — Only clear data from sites you specify
  • Per-container rules — Different exemptions for each Firefox Container
  • Granular control — Choose exactly which data types to keep or clear per rule

🔍 Advanced Options
  • Deep Clear — Also clear parent domain data (e.g., accounts.google.com → google.com)
  • Redirect catching — Catch and clear sites you quickly pass through
  • Deferred clearing — 3rd-party resources shared across tabs are cleared only when all tabs using them are closed
  • Smart dependency tracking — Automatically tracks iframes and scripts, never clears data still in use
  • Container support — Full Firefox Multi-Account Containers integration with per-container settings

🚀 When Data Gets Cleared
  • ❌ Tab closed — Last tab of a site is closed
  • 💤 Tab discarded — Browser unloads inactive tabs
  • 🔀 Navigation — You navigate to a different domain
  • 🚀 Startup — Optional cleanup from previous session

⚡ Built for Performance
  • Batched API calls reduce browser overhead
  • Smart dependency tracking prevents clearing data still in use
  • Race-condition-safe architecture

🔒 Privacy First

100% local. Your settings and browsing habits never leave your device.



🔐 Permissions Explained
  • tabs — Check if a site is still open before clearing its data
  • browsingData — Actually clear cookies, cache, localStorage, etc.
  • storage — Save your settings and exemption rules
  • contextualIdentities — Support Firefox Containers
  • webNavigation — Detect when you navigate away from a site
  • cookies — Find all subdomains for "Deep Clear" mode
  • webRequest — Track iframes and 3rd-party scripts loaded by pages
  • alarms — Schedule delayed clearing



Works on Firefox Desktop and Firefox Android.
Rated 3.8 by 4 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
2
4
1
3
0
2
0
1
1
Read all 4 reviews
Permissions and data

Required permissions:

  • Clear recent browsing history, cookies, and related data
  • Access browser tabs
  • Access browser activity during navigation

Optional permissions:

  • Display notifications to you
  • Access your data for all websites

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Version
3.10.8
Size
114.47 KB
Last updated
a day ago (Dec 15, 2025)
Related Categories
  • Privacy & Security
License
All Rights Reserved
Privacy Policy
Read the privacy policy for this add-on
Version History
  • See all versions
Tags
  • anti tracker
  • container
  • privacy
  • security
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version. Android is a trademark of Google LLC.