How to delete recent items and search history

163.4K views
6 min read

Whether you browse the web or just open some file on your Mac, your activity leaves a footprint. Every website records every page you visit, every link you click, and usually leaves a cookie so that it knows when you’ve come back. 

Your Mac tracks the files you use and then puts the most recent ones in the Recents folder. Of course, it’s done for the sake of convenience — so you can easily find the items you’ve used last — but it’s also okay if you don’t want it. 

This guide explains how you clear recently viewed items on your Mac and how you delete browsing history the easy way.  

What is the Recents folder? 

It’s all in the name — the Recents folder holds all the files you’ve used recently, no matter what type of file they are: images, Word documents, or videos. The tricky thing here is that this folder doesn’t actually exist as an actual folder on your drive, it’s a smart folder that lives in Finder but can’t be deleted — dragged to the Bin — like any regular folder on Mac. Feeling confused yet? No worries, we’ll explain how to get rid of Recents in no time. 

The best way to clear recent files

Let’s start with the fastest method. To purge all your file searches, and all that quickly, use CleanMyMac X. You can choose exactly what you want cleared and you won’t need to browse separate folders and menus, it’s all in one app.

  1. Go to the Privacy tab under Protection 
  2. Select Recent Items Lists
  3. Click Remove.

clear recent files on mac

That’s it! As you can see in the screenshot, you can use this very same feature to purge your browsing history, app permissions, and even old Wi-Fi networks. 

Clear Recent Items on your Mac via Apple menu 

If you just want to delete recents and nothing else, you can use the Apple menu:

  1. Click the Apple logo in the menu bar 
  2. Choose Recent Items > It shows a dropdown of documents and apps used recently 
  3. Scroll to the bottom. Click Clear Menu 
  4. Click the Apple logo > Recent Items to make sure everything is cleared. 

clear recent on mac using apple menu

Remove the Recents folder from Finder 

Another way to hide your recent items on Mac is to remove the Recents folder from Finder: 

  1. Open Finder menu > Preferences 
  2. Go to the Sidebar tab 
  3. Deselect Recents. 

Alternatively, you can open Finder and click Recents while holding the Control button. Choose Remove from Sidebar. 

remove recents folder from finder

How to clear Recents on Mac without deleting 

If you can’t or don’t want to completely remove the Recents folder from your Finder, there are a few techniques that can help you clear this folder and make its contents inaccessible to other people who might be using your Mac. 

Hide startup disk from Spotlight search 

Files get into the Recents folder through Spotlight, a Mac app that indexes and tracks changes across all your files in the background. If you exclude your startup disk from Spotlight search, it will be impossible for Spotlight to figure out which files you’ve used last. So here’s what you should do: 

  1. Open System Preferences or System Settings on Mac
  2. Choose Spotlight 
  3. Open the Privacy tab and click the plus button 
  4. In the Finder window, choose your startup disk under Locations and click Choose 
  5. If you see the warning message, click OK. 

hide startup disk

Hide files from appearing in Recents 

There’s one trick that allows you to hide any file on Mac, and that’s adding a dot to the beginning of its name. It’s not super easy — you’ll have to use Terminal — but it’s doable. So if you just want to hide one specific file from your Recents folder, try this: 

  1. Open Terminal on Mac
  2. Type the following command: mv filename.png .filename.png (replace “filename.png” with the name of the file you want to hide). 
  3. Press Return. 

hide files recents

Tip: While it’s not easy to copy the name of the file from Finder, it’s very easy to make a mistake in your Terminal command. Install Path Finder, which will let you right-click any file and choose Copy Path > Name to save the file name to clipboard. 

path finder mac

Disable Recent Items using Terminal 

How to completely disable document history on macOS? If you want to go one step further, you can use a Terminal command to hide or show recent items. 

  1. Go to Applications > Utilities 
  2. Open Terminal 
  3. Enter the following single line of text command to use Finder to uncover hidden file: defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
  4. To hide everything again, you can use the following command: defaults write com.apple.finder AppleShowAllFiles FALSE killall Finder

Another way to delete a recently opened file history, is to press Command + Shift + period (.) to show or hide any files not immediately visible. Whichever way you uncover files, you can use this time to delete or clear anything that could be running in the background or taking up processing power. 

Move files to an encrypted drive 

Spotlight can’t index encrypted drives, so if you move files from your Recents to such a drive, it will serve as another workaround for hiding recent files on Mac: 

  1. Open Disk Utility 
  2. In the menu, choose File > New Image > Blank Image 
  3. Specify where your encrypted drive should be stored, choose its name and size
  4. Choose the encryption method and provide a password
  5. Choose read/write disk image next to Image Format. 

encrypted drive

Now let’s take a look at how we clear browser data and cookies in the most popular browsers on a Mac. 

Delete searches and other activity in browsers 

Clearing recent searches on a Mac isn’t too difficult, no matter what browser(s) you are using. It also speeds up your browsing experience and Mac’s performance when online. Only when you browse in private mode do you avoid leaving a trace of where you go online. Clearing your browsing history means anywhere you go online remains as it should be — private. 

Depending on the browser you use, there are a few different ways to clear search history. 

Browse securely & privately.

Manually clear Safari history 

  1. Open Safari 
  2. Click History in the top menu 
  3. History includes browser data, cookies and cache information 
  4. Click Clear History
  5. You can select a time range. If you can’t remember when this was last done, simply select “All History”
  6. Click Clear History, and there you go: gone. 

safari history

Clear Chrome History 

  1. Open Chrome and go to its menu 
  2. Click Clear Browsing Data
  3. Now it gives you three tick-box options for what to clear: Browsing history, Cookies, and Cached images and files 
  4. Select the ones you want to clear and the timescale, e.g. “All Time.” 
  5. And there you go: you've cleared your Chrome history. 

chrome history

Delete Firefox History 

  1. In Firefox, there are two ways to clear browser data
  2. Firstly, go to History in the top toolbar 
  3. Click the second option down > Clear Recent History 
  4. Next, locate Preferences (a cog icon in the top right-hand corner of a new browser tab)
  5. Click on Preferences 
  6. Scroll to Cookies and Site Data
  7. Click “Clear Data.” Now everything should be erased. 

We also know a simpler way, using CleanMyMac X, giving you the ability to clear browsing history across all your browsers in only a few clicks: 

  1. Open CleanMyMac X via Setapp 
  2. Go to Privacy
  3. Select your browser > Browsing History > Remove. 

clear history cmm

Take care of your digital privacy with Setapp 

Manually clearing everything doesn't take too long. However, when you clear recent searches, cookies and data this way, you are only ever deleting a small portion of the clutter on your Mac. Alongside browser history, there are duplicate documents, system junk, and numerous downloads. In total, most Mac users find 64GB of clutter and junk taking up valuable disk space and processing power. 

This is why we recommend installing CleanMyMac X to get rid of more clutter. If you get CleanMyMac X through a Setapp subscription, you can try it for free, plus you’re getting extra helpers such as ClearVPN and Path Finder included in your subscription. 

And that’s it. It really is that simple. Setapp will give you tons of amazing tools to ensure everything runs smoothly and keep your Mac at peak performance.

240+ apps for $9.99
per month

Sign up to Setapp and try them for free.

Security-tested