Skip to content
How to Completely Rebuild Corrupted Spotlight Index via mdutil on MacMappleCare Community ↗

How to Completely Rebuild Corrupted Spotlight Index via mdutil on Mac

By Marcus Reed • • 1 min read

Symptoms of a Corrupted Spotlight Index

  • Searching for an exact filename in Finder returns zero results.
  • System Settings storage calculations show incorrect “Applications” or “Documents” sizes.
  • mdworker_shared or mds consumes 100%+ CPU constantly in Activity Monitor.

The Definitive Terminal Rebuild Sequence

Execute these commands in Terminal with administrator privileges:

# 1. Turn off indexing for the primary boot volume:
sudo mdutil -i off /

# 2. Erase the local Spotlight metadata store:
sudo mdutil -E /

# 3. Remove the hidden Spotlight directory to force a clean slate:
sudo rm -rf /.Spotlight-V100

# 4. Turn indexing back on:
sudo mdutil -i on /

# 5. Check real-time re-indexing progress:
sudo mdutil -s /

A progress bar will appear under the Spotlight menu bar icon while the database rebuilds cleanly.

Still running into this issue on your iPhone or Mac?

Share your OS version, device model, and exact error code in our independent peer Q&A rooms.

Ask in Community Forum →