How To Stop File Search From Indexing A Folder

How To Stop File Search From Indexing A Folder

Hidden Subway EntranceI am always going on and on about how I am a fan of searchable PDFs, and search is the main way that I find any document.

However, what do you do if you don’t want a document or folder to be able to found by searching your computer?

It might sound strange, but you may have a folder that contains files that you don’t want cluttering up your regular search results, or you may have documents that are so private that you don’t even want your computer indexing them.

Fortunately, you can control what your computer’s search indexes. The instructions below will be for Spotlight on Mac OS X, but you can see this tutorial for Windows Search.[1]

Remove Folder From Spotlight

First, click on the Apple in the top left and choose System Preferences…

System Preferences
System Preferences

Then, choose Spotlight.

Spotlight
Spotlight

Then, in the middle of the screen, choose the Privacy button.

Spotlight Privacy
Spotlight Privacy

From here, you can add or remove folders or drives that you do not want Spotlight to index. You can either drag the folder onto the list, or press the + button to add a folder.

Spotlight Plus
Spotlight Plus

If you press the + button, navigate to the folder or drive that you want to exclude. In my case, I’ve dragged a folder called Secret Files onto the Privacy pane, and now Spotlight will not index any files that are in that folder.

Spotlight Secret Files
Spotlight Secret Files

If you want your files to be indexed again, just hit the button on the selected folder or drive, and once Spotlight finishes indexing the information, you’ll be good to go.

By the way – if you use cloned backup drives, this can be a great way to stop duplicates in Spotlight for your cloned files.

(Photo by emilydickinsonridesabmx)


  1. Thanks for DocumentSnap reader Jon for the inspiration for this post. His problem is that a folder was somehow excluded that he WANTED to search.  ↩

About the Author

Brooks Duncan helps individuals and small businesses go paperless. He's been an accountant, a software developer, a manager in a very large corporation, and has run DocumentSnap since 2008. You can find Brooks on Twitter at @documentsnap or @brooksduncan. Thanks for stopping by.

Leave a Reply 0 comments

Leave a Reply: