Firefox Browser Add-ons
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 📱.

4.5 (2 reviews)4.5 (2 reviews)
18 Users18 Users
Download Firefox
Download file

Extension Metadata

Screenshots
PopupPopupSettings page
About this extension
Auto-Clear Site Data

Automatically clears website data (cookies, localStorage, indexedDB, cache, service workers) when you leave a site — by closing tabs, navigating away, or when tabs are discarded — helping you maintain privacy and free up storage. 🧹✨



🎯 Key Features

⏱️ Smart Automatic Clearing
  • 🤖 Clears data automatically after a configurable delay (0-3600 seconds) when you exit a site
  • ⚡ Supports instant clearing (0 seconds) for immediate privacy
  • 🚀 Optional "Clear on Startup" to clean sites from your previous session
  • 🎮 Manual "Clear Now" with granular control over which data types to clear

🛡️ Advanced Privacy Controls
  • 🎚️ Whitelist/Blacklist Modes: Clear everything except specific sites, or only specific sites
  • 📊 Granular Data Types: Choose exactly what to clear — cookies, localStorage, sessionStorage, indexedDB, cache, service workers
  • 🔍 Deep Clear: Optionally clear parent domain data (e.g., clear accounts.google.com → clear google.com too)
  • 🔀 Redirect Catching: Clears data from sites you navigated through quickly (configurable X-step detection)

🗂️ Firefox Container Support
  • 📦 Full support for Firefox Multi-Account Containers
  • 🎯 Per-container exemption rules
  • 🔐 Independent container-scoped vs. global data clearing

🧠 Smart Dependency Tracking
  • 🕸️ Automatically tracks and clears sub-frames (iframes) and 3rd-party scripts
  • ⏳ Deferred clearing for shared resources across tabs
  • 🛑 Never clears data that's still in use by other tabs

🔧 Developer-Friendly
  • 🔴 Real-time badge showing pending clears count
  • 📝 Optional console logging
  • 🪵 Built-in page logger for debugging



🚪 When Data Gets Cleared

The extension clears data when you leave a site through:
  • ❌ Tab Close — Closing the last tab of a website
  • 💤 Tab Discard — Browser unloads inactive tabs
  • 🔀 Navigation — Navigating to a different domain
  • 🚀 Startup — Optional cleanup of sites from previous session



🏗️ Technical Highlights

⚙️ Race Condition Elimination
  • 🔒 Advanced locking mechanisms prevent data corruption during concurrent operations
  • 🎯 Sharded domain index architecture isolates container operations
  • 🔄 Multi-layered safety checks detect tabs opening during async operations

🚀 Heavily Optimized Performance
  • 📈 Batched API calls reduce browser overhead by 95%
  • 💾 O(1) lookups with Map/Set data structures (100-400x faster)
  • 🎨 Debounced I/O reduces storage writes by 80%
  • ⚡ Lazy loading for smooth UI with 1000+ rules
  • 🚀 Parallel startup — 60-70% faster extension startup

🎭 Edge Case Handling
  • 🌏 IPv6 address support
  • 🔁 Meta-refresh and client-side redirect detection
  • 👻 "Ghost page" dependency tracking
  • 🔀 Cross-container global data management

📱 Cross-Platform
  • 🦊 Firefox Desktop
  • 📱 Firefox Android



🎯 Perfect For
  • 🕵️ Privacy-conscious users wanting automatic cleanup
  • 🎨 Multi-container power users managing multiple identities
  • 💾 Anyone wanting to free up browser storage automatically
  • 👨‍💻 Developers testing different login states and scenarios



🔒 Privacy First

100% local processing. Your settings, exemption lists, and browsing habits are never transmitted, shared, or analyzed. All data stays on your device.
Rated 4.5 by 2 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
1
4
1
3
0
2
0
1
0
Read all 2 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.4
Size
116.42 KB
Last updated
an hour ago (Dec 6, 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.