Where your Mac stores search history and why you might want to clear it

Your Mac keeps records of searches in several places. Safari stores what you type into its search bar and address bar. Spotlight — the search tool built into macOS — remembers every file, app, and setting you've looked for. Some apps like Mail and Messages keep their own search histories too. Clearing these histories removes the record that you searched for something, but it doesn't delete the files or websites themselves.

Most people clear search history for privacy — so household members or anyone with access to your Mac can't see what you've been looking up. Others do it to clean up their search suggestions, which get cluttered after months of searching. The steps differ depending on which search tool you want to clear, so this guide covers the main ones you'll encounter.

Key Takeaways

  • Safari search history and browsing history are separate — you need to clear both if you want to remove all traces of your web activity.
  • Spotlight search history lives in a hidden system folder and requires a few extra steps to clear completely.
  • You can set Safari to clear history automatically when you quit the browser, so you don't have to do it manually each time.
  • Clearing search history does not delete the files or websites you searched for, only the record that you searched.
  • Some apps like Mail have their own search histories that don't clear when you clear Safari or Spotlight.

Clearing Safari search and browsing history

Open Safari and click Safari in the menu bar at the top of your screen. Select Clear History from the dropdown menu. A window will appear asking how far back you want to clear — choose all history to remove everything, or pick a specific time range like "the last hour" or "today".

This clears both your search history (what you typed into the search bar) and your browsing history (the websites you visited). If you want to clear only search suggestions without touching your browsing history, you'll need to do that separately. Go to Safari > Preferences, click the Search tab, and uncheck Include search engine suggestions. This stops Safari from remembering future searches, but doesn't erase past ones.

To make Safari clear history automatically every time you close the browser, go to Safari > Preferences, click the General tab, and find the dropdown that says Remove history items. Set it to after one day, after one week, or after one month depending on how often you want clearing to happen. This runs in the background without you having to remember.

Clearing Spotlight search history

Spotlight is trickier because its search history isn't accessible through a normal settings menu. To clear it, you need to access the hidden folder where macOS stores this data. Open Finder and press Command + Shift + G to open the "Go to Folder" dialog. Type this exact path: ~/.metadata_never_index and press Enter.

Inside this folder, look for a file or folder called .spotlightV100 (it will have a dot at the start, which is why it's hidden). Drag this folder to the Trash, then empty the Trash. Your Mac will rebuild the Spotlight index automatically over the next few minutes, and your search history will be cleared.

If you want to prevent Spotlight from indexing certain folders in the future, go to System Preferences > Siri & Spotlight (or System Settings > Siri & Spotlight on newer Macs). Click the + button under "Exclude" and select the folders you don't want Spotlight to search or remember. This stops new searches in those folders from being recorded, but doesn't erase past searches.

Clearing search history in Mail and Messages

Mail and Messages each keep their own search records separate from Safari and Spotlight. In Mail, open the app and look at the search box at the top. Click on it and you'll see a dropdown showing recent searches. To clear individual searches, hover over one and click the X that appears. There's no built-in way to clear all Mail searches at once, so you'll need to remove them one by one if you want them gone.

Messages works similarly. Open Messages, click on the search box at the top, and you'll see a list of recent searches. Click the X next to any search you want to remove. Like Mail, Messages doesn't have a "clear all" option, so clearing everything takes more time if you have many searches to remove.

Clearing search history in other apps

Many third-party apps — like Google Chrome, Firefox, Microsoft Word, and Adobe apps — keep their own search histories. Each one stores and clears this data differently. Open the app you want to clear, look for Preferences, Settings, or History in the menu bar, and search for a "clear history" or "clear search" option. Most modern apps have this feature, but the exact location varies.

If you can't find it in the app's settings, check the app's help documentation or support website. Some apps tie their search history to your online account (like Google Chrome syncing to your Google account), so clearing it on your Mac might not remove it from the cloud. If privacy across all your devices matters, check whether the app has account settings you need to adjust separately.

Preventing search history from building up in the first place

Rather than clearing history regularly, you can stop your Mac from recording searches at all. In Safari, use Private Browsing mode, which doesn't save any search or browsing history. Click File > New Private Window or press Command + Shift + N. Any searches or websites you visit in this window won't be recorded.

For Spotlight, you can exclude folders from indexing so searches within them aren't recorded. Go to System Preferences > Siri & Spotlight and add folders to the "Exclude" list. This prevents Spotlight from remembering searches in those locations going forward, though it doesn't erase past searches.

If you share your Mac with others and want to keep your searches private, consider creating a separate user account for yourself. Each account has its own search history, Safari data, and browsing records. To set this up, go to System Preferences > Users & Groups, click the + button, and create a new account. You can then log into your account when you want privacy.

What happens after you clear search history

Once you clear search history, it's gone from your Mac — search suggestions won't show old queries, and anyone browsing your device won't see what you looked up. However, clearing your Mac's history doesn't affect records kept by your internet service provider, your router, or the websites you visited. If you searched for something on Google, Google still has that record in your account. If you want to clear that too, you'll need to visit Google's account settings separately.

Clearing history also doesn't remove cookies or cached files that websites store on your Mac. If you want to clear those as well, go to Safari > Preferences > Privacy and click Manage Website Data to see and delete stored data from individual websites. For a more thorough privacy cleanup, some people use third-party cleaning apps, but these aren't necessary for most users.

Frequently Asked Questions

Does clearing search history delete the files I searched for?

No. Clearing search history only removes the record that you searched for something. The files, websites, and apps you looked for remain on your Mac and online. If you want to delete an actual file, you need to find it in Finder and move it to the Trash separately.

Can I clear search history for just one day instead of everything?

Yes. In Safari, go to Safari > Clear History and choose a time range from the dropdown menu — you can pick "the last hour," "today," "today and yesterday," or "all history." For Spotlight and other apps, you typically have to clear everything at once since they don't offer time-range options.

Will clearing my search history log me out of websites?

Clearing search history alone won't log you out. Search history and cookies are different things. If you want to stay logged in to websites, don't clear cookies when you clear history. In Safari, the "Clear History" button only removes search and browsing records, not cookies, unless you specifically choose to clear those too.

What's the difference between clearing history and using Private Browsing?

Private Browsing prevents your Mac from recording anything in the first place — no searches, no websites visited, no cookies saved. Clearing history removes records after the fact. Private Browsing is better if you want to prevent history from building up; clearing history is what you do after you've already searched.

Why does my search history come back after I clear it?

If you clear Safari history but then search again, new searches will be recorded immediately. This is normal — clearing history doesn't turn off recording. If you want searches to stop being recorded, use Private Browsing mode instead, or turn off search suggestions in Safari Preferences.