Skip to content

Instantly share code, notes, and snippets.

@baysideengineer
Last active May 29, 2024 18:30
Show Gist options
  • Save baysideengineer/da4715bc0cafc297affda3205f81e3f1 to your computer and use it in GitHub Desktop.
Save baysideengineer/da4715bc0cafc297affda3205f81e3f1 to your computer and use it in GitHub Desktop.
Reset Spotlight search on macOS.

Reset Spotlight

Run the following commands to restart and rebuild your Spotlight index on macOS.

  1. Turn indexing off.
  2. Delete Spotlight folder.
  3. Turn indexing on.
  4. Rebuild index.
sudo mdutil -i off /
sudo rm -rf /.Spotlight*
sudo mdutil -i on /
sudo mdutil -E /

Thanks to Eric Espino.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment