Where your Mac stores search history and why you might want to clear it
Your Mac keeps records of what you search for in three separate places: Safari (if you use that browser), Spotlight (the search tool built into macOS), and your web browser if you use Chrome, Firefox, or Edge instead. Each one stores this history differently, and clearing one does not clear the others. Most people want to delete browser history to remove traces of sites they visited, but you might also want to clear Spotlight history if you search for sensitive documents or personal information on your computer.
The reason to know where these records live is that they do not all disappear when you think you have deleted them. Safari history and Spotlight searches are stored in separate databases on your hard drive. If you only clear your browser's search bar history, Spotlight will still find and suggest those same searches the next time you type. This guide walks you through clearing each one.
Key Takeaways
- Safari stores search history separately from browser history, and you must clear both if you want searches to stop appearing in the search bar.
- Spotlight search history is stored in a different location and requires its own deletion step through System Settings.
- Chrome, Firefox, and Edge each have their own history deletion process, found in their own settings menus rather than in macOS settings.
- Clearing history does not remove cached files or cookies, which are stored separately and may still contain traces of your activity.
Deleting Safari search and browser 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 if you want to remove everything, or pick a specific time range like "the last hour" or "today and yesterday" if you only want to clear recent searches.
This step clears your browsing history (the websites you visited) but does not clear search suggestions that appear when you type in the Safari search bar. To remove those, go back to the Safari menu and click Preferences. Click the Search tab, then uncheck the box next to Include search engine suggestions. This prevents Safari from showing you past searches, though it also means you will not see search suggestions from your search engine going forward. If you want to keep suggestions but just clear the history behind them, there is no separate step in Safari — clearing history removes both at once.
Removing Spotlight search history
Spotlight is the magnifying glass icon in the top right corner of your Mac screen. When you click it and start typing, it shows you files, emails, and past searches. To clear what Spotlight remembers, click the Apple menu in the top left corner and select System Settings. Click Siri & Spotlight in the left sidebar.
Scroll down and you will see a button labeled Spotlight Suggestions or Siri Suggestions depending on your macOS version. Click Manage or the settings icon next to it. Look for an option to clear Spotlight history or search history — the exact wording changes between macOS versions, but it is usually near the bottom of this menu. Click it, and Spotlight will forget your past searches. Note that this only clears search history; it does not prevent Spotlight from finding files on your computer going forward.
Clearing history in Chrome, Firefox, and Edge
If you use Chrome, click the three vertical dots in the top right corner and select History, then History again. On the left side, click Clear browsing data. A window opens with checkboxes for different types of data. Make sure Cookies and other site data and Cached images and files are checked if you want to remove all traces, not just history. At the top, choose your time range — All time clears everything. Click Clear data.
Firefox works similarly. Click the three horizontal lines in the top right, select History, then Clear Recent History. Choose your time range at the top. Make sure Browsing & read History is checked, then click Clear Now. Edge uses the same process as Chrome: click the three dots, go to History > Clear browsing data, choose your time range, and click Clear now.
What clearing history does and does not remove
Deleting history removes the record of websites you visited and searches you performed, so those sites will not appear in your browser's dropdown suggestions or in Spotlight. However, it does not remove cookies, which are small files websites use to remember you. If you visit a site after clearing history, it may still know who you are because the cookie remains. Clearing history also does not remove cached files — temporary copies of images and web pages stored on your Mac to make sites load faster.
If you want to remove cookies and cached data as well, you must check those boxes separately in your browser's history-clearing menu. In Safari, this happens automatically when you clear history. In Chrome, Firefox, and Edge, you must manually check the boxes for Cookies and other site data and Cached images and files before you click clear.
Preventing search history from being stored in the first place
If you want to avoid creating a search history at all, use your browser's private or incognito mode. In Safari, click File in the menu bar and select New Private Window. In Chrome and Edge, press Ctrl+Shift+N (or Cmd+Shift+N on Mac). In Firefox, press Ctrl+Shift+P (or Cmd+Shift+P on Mac). When you use private browsing, your searches and websites visited are not stored, though your internet service provider and the websites themselves can still see your activity.
Private browsing does not hide you from Spotlight, however. Spotlight will still index files you create or read, even in a private window. If you want Spotlight to ignore certain folders entirely, go to System Settings > Siri & Spotlight, click Manage, and check the folders you want to exclude from search results.
Frequently Asked Questions
Does clearing history delete my saved passwords?
No. Passwords are stored separately from history and browsing data. If you want to delete a saved password, you must go into your browser's password settings and remove it manually. In Safari, go to Preferences > Passwords. In Chrome, go to Settings > Autofill > Passwords.
Will clearing history speed up my Mac?
Clearing history frees up a small amount of storage space, but it will not noticeably speed up your Mac. If your Mac is running slowly, the problem is usually not search history. Restarting your computer or closing unused applications is more likely to help.
Can I schedule history to delete automatically?
Safari and Chrome both have options to delete history automatically when you close the browser. In Safari, go to Preferences > Privacy and check "Remove all website data when quitting Safari." In Chrome, go to Settings > Privacy and Security > Clear browsing data and toggle "Clear cookies and site data when you quit Chrome."
If I delete history, can someone recover it from my Mac?
Deleting history removes it from your browser, but deleted files can sometimes be recovered using specialized software if your Mac's storage has not been overwritten. If you need to permanently destroy data, you can use your Mac's built-in find Empty Trash feature (on older Macs) or enable FileVault encryption, which makes deleted files unrecoverable.