sodcalculator

10 Tech How-To

How to Find and Clear Recent Activity on Mac

Guide 10-28102 · Updated · Step by step

This guide shows you how to locate and erase traces of your recent activity on a Mac, including recently opened files, apps, websites, and search terms. You’ll learn where macOS stores this history and how to clear it in a few clicks, helping you keep your work private and your Mac tidy.

What You’ll Need

  • Your Mac with macOS Ventura or later (steps are similar for older versions).
  • Administrator access if you want to clear activity for other user accounts.

Step-by-Step

  1. Clear Recently Used Apps and Documents in the Dock and Finder:
    1. Open Finder (the blue face icon in the Dock).
    2. From the menu bar, click Finder > Settings (or Preferences in older macOS).
    3. Click the General tab.
    4. In the “Recent items” section, you’ll see numbers next to “Applications,” “Documents,” and “Servers.” Set each to None if you want to stop showing them, or click Clear Menu to remove the current list while keeping the feature enabled.
    5. Close the settings window. The “Recent” folders in Finder and the Dock’s recent items will be empty.
  2. Clear Recent Items in the Apple Menu:
    1. Click the Apple logo ( ) in the top-left corner and choose Recent Items.
    2. Click Clear Menu at the bottom of the list. This removes the list of recently opened apps, documents, and servers shown there.
  3. Clear Safari Browsing History and Website Data:
    1. Open Safari.
    2. From the menu bar, click History > Clear History….
    3. Choose the time range you want to clear (e.g., “All history”).
    4. Click Clear History. This also removes cookies and other website data for the selected period.
  4. Clear Chrome or Firefox Browsing History (if you use them):
    • Chrome: Click the three-dot menu > History > History (or press Cmd+Y). Then click Clear browsing data on the left. Select a time range and check “Browsing history,” then click Clear data.
    • Firefox: Click the menu button (three lines) > History > Clear Recent History…. Choose a time range and check “Browsing & Download History,” then click Clear Now.
  5. Clear Recent Searches in Spotlight:
    1. Open System Settings (Apple menu > System Settings).
    2. Click Spotlight in the sidebar.
    3. Scroll down and click Clear Spotlight Suggestions and Search History. This removes the list of recent searches that appears when you press Cmd+Space.
  6. Clear Recent Files in Preview, Pages, and Other Apps:
    1. In most apps, the “Recent” list appears in the File menu. Open the app (e.g., Preview, Pages, Numbers).
    2. Click File > Open Recent > Clear Menu (or similar wording).
    3. Repeat for each app you use frequently.
  7. Clear Terminal Command History (if you use Terminal):
    1. Open Terminal (in /Applications/Utilities).
    2. Type history -c and press Enter to clear the current session’s history.
    3. To permanently erase the saved history, type rm ~/.zsh_history (for zsh, the default shell) and press Enter. For older bash, use rm ~/.bash_history.

Common Mistakes

  • Only clearing one app: Recent activity is stored separately in Finder, Safari, Spotlight, and each app. You must clear each location individually.
  • Setting “Recent items” to None but not clearing the current menu: This stops future items from appearing but leaves the existing list until you click “Clear Menu.”
  • Clearing Safari history for “Today” only: If you want to remove everything, choose “All history,” not just today.
  • Forgetting to quit and reopen apps: Some apps only refresh their recent list after you quit and reopen them.
  • Deleting the wrong files in Terminal: Removing the wrong history file can break your shell configuration. Only remove the exact file names listed.

Tips

  • Use a private browsing window: For Safari, press Cmd+Shift+N to open a private window that doesn’t save history. In Chrome, use Cmd+Shift+N; in Firefox, Cmd+Shift+P.
  • Set Finder to open a clean folder: In Finder Settings > General, set “New Finder windows show” to a folder like “Documents” instead of “Recents.”
  • Schedule automatic history clearing: In Safari, you can set Safari to automatically clear history after a period (e.g., after one year) in Settings > General > “Remove history items.”
  • Use “Erase All Content and Settings” for a full reset: If you’re selling your Mac, use this option (in System Settings > General > Transfer or Reset) to wipe all personal data securely.

Troubleshooting

  • Recent items still appear after clearing: Make sure you clicked “Clear Menu” in Finder Settings, not just set the number to None. Also, restart Finder (hold Option, right-click Finder icon in Dock, choose Relaunch) to refresh.
  • Safari history won’t clear: If the “Clear History” button is grayed out, you may have Screen Time content restrictions enabled. Check System Settings > Screen Time > Content & Privacy > Allowed Apps and ensure Safari is allowed.
  • Spotlight suggestions keep coming back: After clearing, you may need to disable “Siri Suggestions” in Spotlight settings to prevent new ones from appearing.
  • Terminal history persists after clearing: If you use zsh, the history is stored in ~/.zsh_history. After deleting it, close and reopen Terminal to verify. If it still shows, you may have multiple history files (e.g., ~/.zsh_history and ~/.history).

Frequently Asked Questions

Does clearing recent activity delete my files?

No. It only removes the shortcuts or records of where you’ve been, not the actual files themselves.

How do I clear recent items in the Dock?

Right-click an app icon in the Dock, hover over “Options,” and choose “Show Recents” to toggle it off. To clear the list, use Finder Settings > General > Clear Menu.

Will clearing Safari history also clear my passwords?

No. Passwords are stored separately in Keychain Access and are not affected by clearing history.

Can I clear recent activity for all users at once?

Only an administrator can clear activity for other users, but you must log into each account and repeat the steps. There is no global “clear all users” button.

Why does my Mac still show recently opened files after I cleared them?

Some apps cache their own recent lists. Check the app’s Preferences for a “Recent items” setting, and also clear the system-wide list in Finder Settings as described above.

Is there a way to stop macOS from tracking recent activity altogether?

You can set “Recent items” to None in Finder Settings, disable Siri Suggestions in Spotlight, and use private browsing in Safari. However, some system logs and app-specific histories will still exist.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →