User Agents

Clear Web History in Firefox: How to Do It

Yes, you can clear your web history in Firefox. The browser provides built-in controls to delete some or all of your browsing history, and you can also set it to clear automatically when you close the browser. This article explains how Firefox stores history, the exact steps to clear it, what gets removed, and how to manage related data like cookies and cache.

How Firefox Stores Browsing History

Firefox keeps a record of the pages you visit in a local database file called places.sqlite, stored in your Firefox profile folder. This database also holds bookmarks and downloaded file records. History entries include the URL, page title, visit time, and visit count. By default, Firefox retains history indefinitely unless you clear it manually or set up automatic clearing. The browser also stores form and search history separately, along with cookies, cache, and site permissions. Understanding these separate stores helps you decide what to clear and what to keep.

Firefox syncs history across devices if you use a Firefox Account with Sync enabled. Clearing history on one device does not automatically clear it on other synced devices unless you clear it there too. However, if you clear history and then sync, the deletion may propagate to other devices depending on sync timing. This is important to know if you rely on Sync for bookmarks or open tabs.

Steps to Clear Your Firefox History

The exact menu labels can vary slightly between Firefox versions and operating systems, but the overall path is consistent. Here is the standard method:

  1. Open Firefox.
  2. Click the menu button (three horizontal lines) in the top-right corner.
  3. Select History from the menu.
  4. Click Clear recent history… (or press Ctrl+Shift+Del on Windows/Linux, Cmd+Shift+Del on Mac).
  5. In the dialog that appears, choose the time range to clear from the drop-down menu (e.g., Last hour, Last 2 hours, Today, Everything).
  6. Select the checkboxes for the types of data you want to clear. At minimum, check Browsing & Download History. You can also choose Cookies, Cache, Form & Search History, and others.
  7. Click Clear Now (or OK depending on version).

If you only want to delete specific history entries rather than everything, open the Library window (Ctrl+Shift+H or Cmd+Shift+H), right-click individual entries, and select Forget About This Site or delete them manually. The Library also lets you search your history and remove selected items.

What Gets Removed and What Stays

When you clear browsing history, Firefox deletes the visit records from the history database. However, clearing history alone does not remove:

  • Cookies and site data – unless you check the Cookies checkbox, sites may still remember you.
  • Cache – cached files remain unless you check the Cache checkbox.
  • Bookmarks – bookmarks are separate and are not deleted when you clear history.
  • Saved passwords – these are stored in the password manager and are unaffected.
  • Form autofill entries – unless you check Form & Search History.
  • Downloads – the list of downloaded files is part of history; clearing history removes the download list but not the files themselves.

Also note that clearing history does not remove data stored by websites in other ways, such as local storage or IndexedDB, unless you clear cookies and site data. For a more thorough cleanup, use the Cookies and Site Data section in Settings to manage per-site storage.

Automatic History Clearing on Exit

Firefox can be configured to clear history automatically each time you close the browser. This is useful for shared computers or for users who prefer not to keep a record. To enable it:

  1. Open Firefox Settings (menu > Settings or Preferences).
  2. Select Privacy & Security.
  3. In the History section, choose Use custom settings for history from the drop-down.
  4. Check the box labeled Clear history when Firefox closes.
  5. Click the Settings… button next to it to choose which data to clear on exit (Browsing & Download History, Cookies, Cache, etc.).

Be aware that this setting applies to all history, not just recent items. It will also clear cookies if selected, which may sign you out of websites. You can also use Private Browsing windows (Ctrl+Shift+P or Cmd+Shift+P) for sessions that are not recorded in history at all.

Common Problems and Misconceptions

One common misconception is that clearing history makes you anonymous online. It does not. Your internet service provider, employer (on a work network), and websites you visit can still log your activity. Clearing history only removes the local record in Firefox. Another misconception is that clearing history frees up significant disk space; the history database is typically small, so the space savings are minimal. Clearing cache is more effective for freeing space.

If you find that history entries reappear after clearing, check whether Firefox Sync is enabled and syncing from another device. Also, some add-ons or security software may restore or back up history. If the Clear Recent History dialog is grayed out, ensure you are not in a Private Browsing window (history is not recorded there) and that no policy restrictions are in place (e.g., on managed work computers).

Frequently Asked Questions

Does clearing history delete bookmarks?

No. Bookmarks are stored separately from browsing history and are not removed when you clear history. You can delete bookmarks manually if desired.

Can I recover history after clearing it?

Once history is cleared, it cannot be recovered through Firefox. If you have a backup of your Firefox profile folder, you might restore the places.sqlite file, but this is not a built-in feature and requires manual file management.

Does clearing history remove cookies?

Only if you check the Cookies checkbox in the Clear Recent History dialog. Clearing history alone does not remove cookies, so websites may still remember your login or preferences.

Will clearing history affect my synced devices?

If you use Firefox Sync, clearing history on one device may eventually remove those entries from other synced devices, but the timing depends on sync. To ensure history is cleared everywhere, clear it on each device or manage sync settings.

How do I clear only a specific site's history?

Open the Library (Ctrl+Shift+H), search for the site, right-click the entry, and select Forget About This Site. This removes history, cookies, and other data for that site.

Is clearing history the same as Private Browsing?

No. Private Browsing prevents history from being saved in the first place for that session, while clearing history removes records that were already saved. Both have their uses, but neither makes you anonymous to network observers.