Excluding files and folders from Alfred's results
Occasionally there may be files and folders on your Mac that you never want to search, such as apps installed in VMWare or Parallels or development files in node_modules which can saturate the macOS metadata index.
Unfortunately the macOS metadata search API only allows Alfred to include search folders, not exclude them, but there are a few methods you can use to stop seeing those files.
NoteAlfred keeps a separate cache for Applications. You may need to run
reloadto refresh it after making changes which affect the macOS metadata index.
Page Index
Add to Spotlight Search Privacy
Adding paths to Spotlight's Search Privacy excludes them from the search index and thus Alfred results. Navigate to System Settings > Spotlight > Search Privacy… to add the locations to ignore.


Tag with alfred:ignore
Files and folders tagged with alfred:ignore are excluded from Alfred search results. You can tag paths in their info panel accessed via right-click > Get Info or by using Automation Tasks.
ImportantTagging folders is not a recursive operation - you also need to tag each file inside to ignore them. The Ignore in Alfred workflow facilitates that process.
![]()
Remove from Alfred's Search Scope
If the folder you want to exclude is in your Search Scope, removing it will stop the files from showing.
Use a File Filter
Depending on the context where you're finding those files, a File Filter with a specific scope can considerably narrow down your results.