User Agents

Erase History in Firefox: Step‑by‑Step Guide

To erase history in Firefox, open the menu, select History, then choose Clear Recent History… and pick the items you want removed.

Background: Why Firefox Stores History

Firefox keeps a record of every page you visit, the downloads you initiate, and the passwords you save. This data powers features such as the address‑bar autocomplete, the back‑and‑forward navigation, and the ability to restore a session after a crash. The history database is stored in a file called places.sqlite inside your profile folder, along with cookies and cached files. While convenient, it also means that anyone who can access your profile directory can read your browsing past, which raises privacy concerns for users who want to keep their activity confidential.

How the Clear Recent History Feature Works

When you invoke Clear Recent History…, Firefox opens a dialog that lists four categories: Browsing & Download History, Cookies, Cache, and Active Logins. Each category can be expanded to reveal sub‑items such as Form & Search History or Offline Website Data. Firefox writes the selected entries directly to the database, effectively deleting the records from the places.sqlite file and the cache directory. The operation is atomic: it either succeeds completely or leaves the database unchanged, preventing partial deletions that could corrupt the history file.

Step‑by‑Step Instructions

  1. Click the menu button (three horizontal lines) in the top‑right corner.
  2. Select History from the drop‑down list.
  3. Choose Clear Recent History… (or press Ctrl+Shift+Del on Windows/Linux, Cmd+Shift+Del on macOS).
  4. In the dialog, pick a time range such as Last Hour, Last 24 Hours, or Everything.
  5. Expand the Details section to see individual items.
  6. Check the boxes for the data you want removed—e.g., Browsing & Download History, Cookies, Cache, Active Logins.
  7. Click Clear Now to commit the deletion.
  8. Optional: close the History sidebar or the menu to return to normal browsing.

Choosing the Right Scope

Firefox offers several scopes for clearing history:

  • Last Hour / 24 Hours / 7 Days / 4 Weeks – useful for quick clean‑ups without touching older data.
  • Everything – removes all stored history, cookies, cache, and login data.
  • Custom time ranges can be set by selecting Custom in the dialog and entering a start/end date.

Decide based on how much data you wish to keep. For example, a shared computer user might choose Everything after each session, while a private user may only clear the last day’s browsing to maintain speed while keeping long‑term bookmarks.

Common Problems and Fixes

Users occasionally encounter issues such as:

  • History not clearing – Often caused by the places.sqlite file being locked by another process. Restart Firefox or run the about:profiles page and click Restart with Add‑ons Disabled to unlock it.
  • Cache remains full – Ensure the Cache checkbox is checked. Some extensions may write to the cache outside Firefox’s control; disabling them temporarily can help.
  • Bookmarks missing – Bookmarks are stored separately in bookmarkbackups. Clearing history does not affect them, but if you see missing bookmarks, check the Bookmarks Menu and Bookmarks Toolbar for hidden folders.

Comparisons: Firefox vs. Other Browsers

While Chrome, Edge, and Safari also provide history clearing options, Firefox’s dialog is more granular. Chrome’s Clear Browsing Data groups items into broad categories, whereas Firefox lets you choose sub‑items like Form & Search History or Offline Website Data. Safari’s clearing options are limited to history, cookies, and cache, with no direct control over active logins. For users who prioritize privacy, Firefox’s detailed selection is a clear advantage.

Safety Considerations

Clearing history is safe, but keep in mind:

  • Deleting Cookies logs you out of most sites. Re‑login may be required.
  • Removing Cache forces Firefox to re‑download resources, which can temporarily slow browsing.
  • Clearing Active Logins removes stored passwords; if you use Firefox Lockwise, you may need to re‑enter passwords.
  • Always back up your profile if you have custom settings or extensions that rely on stored data.

Alternatives to Manual Clearing

For users who need to purge history automatically, consider:

  • Firefox Private Browsing – Opens a window that never writes history. Closing the window discards all data.
  • Third‑party add‑ons – Extensions like Clear History or History Cleaner can schedule automatic clears.
  • Command‑line tools – On Linux, the rm command can delete places.sqlite and cache folders, but this is risky and may corrupt the profile if Firefox is running.

Frequently Asked Questions

Can I clear history without logging out of websites?

Yes. In the Clear Recent History dialog, uncheck the Cookies and Active Logins boxes. This keeps you signed in while removing browsing records.

Will clearing history affect my bookmarks?

No. Bookmarks are stored separately from history. They remain intact unless you delete them manually.

How often should I clear my Firefox history?

There is no hard rule. If you share a computer, clear everything after each session. For personal use, clearing every few days keeps the history manageable without losing useful data.

What if Firefox refuses to delete the cache?

Make sure no tabs are using cached resources. Close all tabs, restart Firefox, and try again. If the problem persists, disable extensions that may be writing to the cache.

Can I restore cleared history?

Once deleted, history entries are permanently removed from the database. Unless you have a backup of your profile or a third‑party backup tool, restoration is not possible.