Hero Background

Next-Gen App & Browser Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud
  • Home
  • /
  • Blog
  • /
  • How to Clear History in Firefox
Browsers and OS

How to Clear History in Firefox

Learn how to clear history in Firefox on desktop, Android, and iPhone to boost privacy and performance for a more secure browsing experience.

Author

Tahneet Kanwal

May 11, 2026

Clearing history in Firefox removes the locally stored log of every URL you visit, along with any cached assets and session cookies tied to those pages. That browsing history builds up automatically: it speeds up navigation, but also lets anyone with device access see your activity and allows sites to track sessions across visits.

Firefox gives you several ways to clear that data, from targeted time-range deletions to a full wipe of history, cache, and cookies in one pass.

This guide covers four approaches: the desktop menu, mobile devices (Android and iPhone), keyboard shortcuts for power users, and clearing cache and cookies alongside history for a complete privacy reset. Steps are verified on Firefox 150 (Windows 11 and macOS, May 2026), cross-referenced against Mozilla's official Firefox history guide.

Overview

How do you clear history in Firefox?

Press Ctrl + Shift + Delete (Windows/Linux) or Command + Shift + Delete (macOS), select your time range, check History, and click Clear Now. For a full privacy reset, also check Cookies and Cache in the same dialog.

Which method should you use?

  • Desktop menu: Best for first-time users who prefer step-by-step visual navigation through the Firefox menu.
  • Keyboard shortcut (Ctrl + Shift + Delete): Fastest option - opens the Clear Recent History dialog directly, no menu navigation required.
  • Android or iPhone: Use the in-app History menu, then tap Clear Browsing Data and choose a time range.
  • Auto-clear on close: Best for shared or high-privacy devices - Firefox wipes selected data types automatically every time the browser closes.

What data can Firefox clear?

Browsing and download history, cookies, cache, active logins, site preferences, and offline website data. Each data type can be cleared independently or all at once - you choose which to include each time.

Steps to Clear Firefox History on Desktop

  • Launch the Firefox browser and click the menu icon in the top-right corner (three horizontal lines).
  • From the drop-down menu, select History to view your browsing records.Firefox browser menu open showing History and Clear recent history option
  • Click Clear recent history from the options available.Firefox Clear Recent History dialog with time range dropdown set to Last Hour
  • Ensure the History checkbox is selected. Choose additional data types if needed.
  • Click Clear to remove your browsing history and any other selected data.Firefox Clear Recent History dialog with History checkbox selected and Clear Now button

Watch the When dropdown: it defaults to Last Hour, not Everything. Change it to Everything before clicking Clear, or you will only wipe the past hour of data.

To erase all data for a single website instead of your entire history, right-click any entry in the History list and choose Forget About This Site. Firefox removes all browsing records, cookies, cache, and saved forms for that domain in one action.

...

Steps to Clear Firefox History on Android and iPhone

Android Devices

  • Launch Firefox and tap the menu (three dots icon) in the top-right corner.
  • Select History from the dropdown menu.
  • Tap Clear Browsing Data at the top of the screen.
  • Choose the types of data you wish to clear, including history, cache, and cookies.
  • Select a time range, then tap DELETE to finalize.Firefox Android app showing Clear Browsing Data button in the History menu

iPhone Devices

  • Open Firefox and tap the menu (three lines icon) in the bottom-right corner.
  • Tap History from the bottom menu bar.
  • Tap Clear recent history and select a time range from the options available.
  • Confirm the action to clear your browsing history for the selected period.Firefox iPhone app showing Clear recent history prompt with time range options
Note

Note: When running cross-browser tests in Firefox, a clean history prevents stale cookies and cached redirects from affecting results. TestMu AI runs each test session on a fresh browser profile across 10,000+ real devices, so session state never bleeds between runs. Start testing free

Steps to Clear Firefox History With Keyboard Shortcuts

The keyboard shortcut method opens the same Clear Recent History dialog but skips the menu navigation entirely. It is the fastest option for routine cleanups. To refresh Firefox to a clean state quickly, combine this shortcut with a browser restart.

  • Press Ctrl + Shift + Delete (Windows/Linux) or Command + Shift + Delete (macOS) to open the Clear Recent History dialog.
  • Press the Tab key to navigate to the When dropdown and select the desired time range.
  • Press Tab again to reach the data-type checkboxes, use the arrow keys to reach History, and press Space to select it.
  • Press Enter to clear the selected data.

The shortcut clears history across your entire Firefox profile - if you have multiple windows open, they all share the same history store, so one shortcut clears them all simultaneously.

How to Clear Firefox Cache and Cookies

Firefox stores three distinct types of local data that affect privacy and performance:

  • Browsing history - a log of every URL you visited
  • Cache - saved copies of page assets (images, scripts, stylesheets) that speed up repeat visits
  • Cookies - small files that websites use to track sessions, preferences, and logins

Clearing only the browsing history leaves your cache and cookies intact, which can still expose you to tracking. To clear all three in one pass:

  • Press Ctrl + Shift + Delete (Windows/Linux) or Command + Shift + Delete (macOS) to open the Clear Recent History dialog.
  • In the Time range dropdown, select Everything.
  • Under What to clear, check the boxes for Browsing & Download History, Cookies, and Cache.
  • Click Clear Now.

To clear only the cache without touching history or cookies, see the full steps in our guide to clear Firefox cache. To manage which sites can set cookies, see how to disable cookies in Firefox.

Active Logins is another option in the same dialog. Selecting it logs you out of sites using HTTP basic authentication, but not cookie-based logins - most modern web apps fall in the latter category, so you may remain signed in to those even after clearing active logins.

...

How to Auto-Clear Firefox History on Close

Instead of clearing history manually, Firefox can wipe selected data automatically each time you close the browser. This is useful on shared devices or in high-privacy workflows where you need a clean slate every session.

  • Open the menu (three lines) and select Settings.
  • Click Privacy & Security in the left sidebar.
  • Under History, open the dropdown and choose Use custom settings for history.
  • Check the box for Clear history when Firefox closes.
  • Click the Settings button next to that checkbox to choose which data types get cleared on close (history, cookies, cache, active logins, etc.).
  • Click OK to save your preferences.

Firefox will now automatically clear the selected data types every time the browser closes.

Two caveats: Auto-clear only runs on a normal browser exit - a crash or force-quit will not trigger it. If Firefox is configured to use automatic private browsing mode, the auto-clear on close setting will be unavailable in Privacy & Security settings.

Conclusion

To clear Firefox history, press Ctrl + Shift + Delete, select your time range, check History, and click Clear Now. For a full privacy reset, add Cookies and Cache to the same selection. For shared or high-privacy devices, enable auto-clear on close so it happens automatically every session.

For QA teams testing in Firefox, browser state management goes beyond manual cleanup. TestMu AI's real device cloud runs each test session on a fresh Firefox profile across 10,000+ real devices and OS combinations, eliminating cached-state issues without any manual clearing.

To configure Firefox WebDriver for TestMu AI's cloud grid, see the Selenium WebDriver testing docs. For broader cross-browser automation strategies, explore our cross-browser testing guide or our roundup of cross-browser testing tools.

Note

Note: This article was researched and drafted with AI assistance, then reviewed, fact-checked, and published by Tahneet Kanwal, Community Contributor at TestMu AI, whose listed expertise includes Web Technologies and Frontend Development. Every statistic, link, and product claim was verified against primary sources. Read our editorial process and AI use policy for details.

Author

Tahneet Kanwal is a freelance technical content writer with over 2 years of hands-on experience in frontend development and technical writing. She holds a B.Tech in Information Technology from University College of Engineering and Technology (UCET). Tahneet creates clear, SEO-optimized content on web technologies, software testing, and automation tools, leveraging her skills in HTML, CSS, JavaScript, React, Tailwind CSS, and various tools like VS Code, GitHub, Figma, and Canva. She is the author of 30+ technical blogs and an open-source contributor through Hacktoberfest. She has also participated in the Google Cloud Arcade Facilitator Program and holds certifications as a Meta Android Developer (Coursera) and in Web Development (Internshala). Over time, she has evolved her writing to prioritize structure, readability, and SEO while maintaining technical depth.

Open in ChatGPT Icon

Open in ChatGPT

Open in Claude Icon

Open in Claude

Open in Perplexity Icon

Open in Perplexity

Open in Grok Icon

Open in Grok

Open in Gemini AI Icon

Open in Gemini AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Frequently asked questions

Did you find this page helpful?

More Related Hubs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests