Rebuild the Spotlight index on Mac
Erase the broken Spotlight database so macOS re-indexes your drive from scratch.
01Command
$ sudo mdutil -E /02What it does
When Spotlight misses files, shows stale results, or nothing appears at all, its index store is usually corrupt. mdutil -E erases the index for the root volume; the system notices the empty store and re-crawls every indexed folder automatically. Check progress with mdutil -s / (it reports "Indexing enabled" while the crawl runs). No reboot is required.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- macOS mdutil command referenceEvidence: mdutil -E erases and rebuilds the Spotlight index store for the specified volume or directory.
Last verified: 2026-09-16 · Category: System & Settings
06Related solutions
Point macOS screen captures at any folder you choose instead of the desktop.
Grab any file from the web straight into the current folder — no browser needed.
List the biggest files in your home folder that are eating disk space.