How to Delete History on a Mac Computer
Browsing history, app activity logs, recently opened files, Spotlight searches — your Mac quietly accumulates a surprising amount of historical data over time. Knowing how to clear each type, and understanding what each deletion actually does, puts you in control of your own privacy and performance.
What "History" Actually Means on a Mac
The word "history" covers several distinct data trails on macOS, and they're stored in different places by different systems. Clearing one doesn't touch the others. Before diving into steps, it helps to know what you're actually dealing with:
- Browser history — websites visited, stored by Safari, Chrome, Firefox, or whichever browser you use
- Recently opened files — the list under the Apple menu → Recent Items
- Finder recents — files surfaced in the Finder sidebar under "Recents"
- Spotlight search history — queries entered into macOS Spotlight
- Terminal command history — commands typed in the Terminal app
- App-specific history — recently opened documents inside apps like Preview, Pages, or Word
Each of these is a separate system. Treating them as one thing is the most common source of confusion.
How to Delete Browser History on a Mac 🖥️
Safari
Safari is the default Mac browser and stores history locally in your user library. To clear it:
- Open Safari
- Click History in the menu bar
- Select Clear History…
- Choose a time range: last hour, today, today and yesterday, or all history
- Click Clear History
This removes visited pages, cached searches from the address bar, and related website data. If you're signed into iCloud with Safari syncing enabled, clearing history on your Mac will also clear it across your other Apple devices. That's worth knowing before you select "all history."
For more surgical control — removing a single site rather than everything — go to History → Show All History, find the entry, and press Delete.
Google Chrome
- Open Chrome and press ⌘ + Shift + Delete (or go to Chrome menu → Clear Browsing Data)
- Select a time range
- Check Browsing history, plus any other data types you want removed (cookies, cached images)
- Click Clear data
Chrome keeps its own local history independent of Safari. If you're signed into a Google account with sync active, clearing history here affects your account across all signed-in devices.
Firefox
Firefox follows a similar pattern: History → Clear Recent History, choose a time range, select data types, and confirm. Firefox also lets you set it to clear history automatically when the browser closes — useful if you'd prefer not to manage it manually.
How to Clear Recent Items and Finder History
macOS maintains a "Recent Items" list that shows apps, documents, and servers you've accessed recently. This appears under the Apple menu → Recent Items.
To clear it:
- Click the Apple menu (top-left corner)
- Hover over Recent Items
- Click Clear Menu
This wipes the Recent Items list immediately. It doesn't delete the files themselves — just the reference to them in the menu.
The Recents folder in the Finder sidebar is a smart folder that pulls from the same underlying data. Clearing Recent Items from the Apple menu typically updates what appears there as well.
To stop files from appearing in Recents going forward, you can adjust how many recent items macOS tracks: System Settings → Desktop & Dock → Recent Documents, Applications, and Servers — set the number to None.
How to Clear Spotlight Search History
Spotlight doesn't expose a direct "clear search history" button in the same way browsers do. However, you can effectively reset Spotlight's index — which also clears its suggestion history — by going to:
System Settings → Siri & Spotlight → Spotlight Privacy
Adding a folder to the Privacy list (even temporarily) and then removing it can prompt a re-index. Alternatively, using Terminal:
sudo mdutil -E / This erases and rebuilds the Spotlight index. It's a more technical approach and requires administrator access, but it's thorough.
How to Clear Terminal Command History 🔒
If you use Terminal, every command you've typed is stored in a history file. To clear it within a session:
history -c To permanently wipe the stored history file:
cat /dev/null > ~/.zsh_history (Use ~/.bash_history if your Mac is running an older macOS version that defaults to Bash rather than Zsh.)
Note that this is irreversible — the history file is overwritten, not moved to Trash.
App-Specific History
Many individual apps maintain their own recent file lists independently of macOS. Microsoft Word, Adobe apps, and most professional tools have their own Recent Documents sections inside the app's File menu. Clearing these is done within the app itself, and the steps vary by application.
The Variables That Shape Your Approach
How much of this matters to you — and how thoroughly you need to clear it — depends on factors specific to your situation:
| Factor | Why It Matters |
|---|---|
| iCloud sync status | Clearing Safari history may affect other Apple devices |
| Shared vs. personal Mac | On a shared machine, scope and frequency of clearing matters more |
| macOS version | Menu paths and settings labels shift between macOS versions (Ventura, Sonoma, Sequoia) |
| Browser choice | Each browser stores and clears history differently |
| User account setup | Multiple accounts on one Mac have separate histories |
A Mac used solely by one person, not synced to iCloud, and running a recent macOS version is a very different situation from a family or work machine with shared access and cloud sync active. The right approach in one scenario can cause unintended consequences in the other — particularly when sync is involved and a broad history deletion ripples across devices you didn't mean to affect.