How to Delete Browsing and File History on a Mac

Your Mac quietly logs a surprising amount of activity — websites you've visited, documents you've opened, searches you've typed, and apps you've launched. Knowing where that history lives, and how to clear it, puts you back in control of your own data.

What Counts as "History" on a Mac?

"History" on a Mac isn't stored in one single place. It spans several different systems:

  • Browser history — URLs, cached pages, cookies, and autofill data stored by Safari, Chrome, or Firefox
  • Recent items — apps, documents, and servers accessed recently, tracked by macOS itself
  • Spotlight search history — queries entered into Spotlight
  • Siri suggestions and history — interactions logged to improve Siri's relevance
  • Finder sidebar recents — the Recents folder that surfaces recently opened files
  • Terminal history — commands entered in the Terminal app
  • App-specific history — search history inside apps like Photos, Maps, or the App Store

Clearing one of these doesn't touch the others. That distinction matters depending on why you want to delete history in the first place — privacy, troubleshooting, or just tidying up.

How to Delete Safari Browser History

Safari stores history in iCloud by default if you're signed in with an Apple ID and have Safari sync enabled. This means clearing history on your Mac can also affect your iPhone and iPad.

To clear Safari history:

  1. Open Safari
  2. Click History in the menu bar
  3. Select Clear History…
  4. Choose a time range: last hour, today, today and yesterday, or all history
  5. Click Clear History

This removes browsing records, cookies, and cached website data in one step. For more granular control — deleting specific sites without wiping everything — go to History > Show All History, then right-click individual entries and select Delete.

To clear Safari cache and cookies separately:

Go to Safari > Settings > Privacy > Manage Website Data to remove stored data on a site-by-site basis.

How to Delete History in Chrome and Firefox 🗂️

Third-party browsers store history locally and don't sync with iCloud. Each has its own clearing process.

Chrome:

  1. Press ⌘ + Shift + Delete
  2. Choose a time range and select the data types to remove (browsing history, cookies, cached images)
  3. Click Clear data

Firefox:

  1. Press ⌘ + Shift + Delete
  2. Select the time range and history types
  3. Click OK

Both browsers also support deleting individual entries — open History, find the entry, right-click, and delete.

How to Clear macOS Recent Items

macOS tracks recently opened apps, documents, and servers through the Apple menu.

To clear Recent Items:

  1. Click the Apple menu (🍎) in the top-left corner
  2. Hover over Recent Items
  3. Scroll to the bottom and click Clear Menu

This removes the list of recently opened files and apps from the menu, though it doesn't delete the actual files.

You can also adjust how many recent items macOS tracks — or turn it off entirely — under System Settings > Desktop & Dock > Recent Documents, Apps, and Servers.

How to Remove Files from the Recents Folder in Finder

The Recents section in Finder is a smart folder — it doesn't contain actual files, only aliases pointing to them. Removing something from Recents doesn't delete the file.

To remove a file from Recents:

  1. Open Finder and click Recents in the sidebar
  2. Right-click the file you want to remove
  3. Select Remove from Recents

To stop the Recents folder from appearing altogether, go to Finder > Settings > Sidebar and uncheck Recents.

How to Clear Spotlight Search History

macOS doesn't expose a direct "clear Spotlight history" button, but you can effectively reset it:

  1. Go to System Settings > Siri & Spotlight
  2. Under Spotlight, click Spotlight Privacy…
  3. Add a folder or drive to exclude it from indexing

Alternatively, disabling and re-enabling Spotlight indexing via Terminal forces a full reindex, which resets its usage data. This is a more technical step suited to users comfortable with command-line tools.

How to Clear Terminal Command History

Every command entered in Terminal is saved to a history file — useful for repeating commands, but potentially sensitive.

To clear Terminal history in the current session:

history -c 

To permanently delete the history file (for zsh, the default shell on modern Macs):

rm ~/.zsh_history 

For older Macs using bash:

rm ~/.bash_history 

After running this, close and reopen Terminal for the change to take effect.

Variables That Shape What You Actually Need to Clear 🔒

How thoroughly you need to clear history — and which locations matter most — depends on several factors:

FactorWhy It Matters
iCloud syncSafari history clears across all signed-in Apple devices
macOS versionMenu paths and setting names shift between Ventura, Sonoma, and Sequoia
Browser choiceEach browser manages its own independent history store
Shared MacOn a multi-user Mac, each account has separate history
FileVault statusEncrypted drives add a layer of protection even if history isn't wiped
Third-party appsApps like Maps, App Store, and Messages keep their own logs

A Mac used by one person for personal browsing has very different privacy exposure compared to a shared family machine, a work device managed by an employer's MDM profile, or a Mac being sold or passed on to someone else. Each scenario calls for a different scope of deletion.

The right approach depends entirely on which history sources are relevant to your situation and what outcome you're actually trying to achieve.