How to Completely Remove the ‘Recents’ Tag from the macOS Finder Sidebar Using Terminal

By default, the very top item in the sidebar of every macOS Finder window is a smart folder labeled “Recents”. It automatically aggregates and displays every file, image, and document you have interacted with across your entire hard drive over the past few weeks.

While intended to be helpful, for many users, “Recents” is a massive privacy liability. If you are sharing your screen during a Zoom meeting, or if a colleague looks over your shoulder, they can instantly see your most sensitive personal documents, financial spreadsheets, or private photos prominently displayed every time you open a basic Finder window.

macOS allows you to right-click and remove “Recents” from the sidebar, but Apple aggressively forces it back if you ever reinstall the OS or run certain updates. To completely and permanently eradicate the “Recents” search query from the Finder UI, you can use the Terminal.

Step 1: Remove Recents from the Sidebar

First, we must tell the Finder configuration file to drop the smart search item from the favorites list.

  1. Open the Terminal app (found in Applications > Utilities).
  2. Copy and paste the following command exactly as written (this modifies the Finder’s property list to strip out the Recents sidebar entry):
    defaults write com.apple.finder ShowRecentTags -bool false
  3. Press Return.

Step 2: Change the Default New Window Behavior

Even if it is gone from the sidebar, if you press Command + N to open a new Finder window, macOS often defaults to showing the “Recents” view in the main window anyway.

  1. In the Terminal, run this command to force all new Finder windows to open directly to your Home folder (the one with your username) instead of Recents:
    defaults write com.apple.finder NewWindowTarget -string "PfHm"
  2. Press Return.

(Note: If you prefer new windows to open to your Documents folder, use "PfDo" instead of "PfHm").

Step 3: Restart the Finder

For these preference changes to take effect, the Finder application must be forcefully rebooted.

  1. In the Terminal, type:
    killall Finder
  2. Press Return.

Your desktop icons will briefly flash as the Finder restarts. When you open a new window, it will instantly default to your clean, safe Home directory, and the privacy-invading “Recents” tab will be completely gone from the sidebar.

RELATED POSTS

  • How to Password Protect a Folder on Mac Using Disk Utility
  • How to Rename Your Mac Hard Drive
  • How to Use macOS Preview to Combine PDF Files
  • How to Use the pbcopy and pbpaste Commands in the macOS Terminal
  • How to Find Out Which Apps are Draining Your Mac’s Battery
  • Get the best tech tips delivered straight to your inbox.

    Join thousands of readers mastering Apple, Google, Microsoft, and Linux.