Disk space kept shrinking rapidly
System showed hundreds of GB used, but files didn’t add up
Cleaning caches and dev folders didn’t fix it
Reboot temporarily helped, but the issue came back
Running a proper disk scan revealed this:
sudo du -xhd 1 /System/Volumes/Data | sort -hr | head
Output showed:
200G /System/Volumes/Data/.Spotlight-V100
👉 The Spotlight index alone was consuming ~200GB
A healthy Spotlight index is usually only a few GB.
Spotlight was indexing a high-churn development environment:
Node / Expo projects
Android builds (Gradle)
Large numbers of small files (node_modules, build artifacts)
constant file changes triggered re-indexing
metadata accumulated rapidly
index became unstable and eventually corrupted
macOS never cleaned it up
Before identifying the root cause:
clearing ~/Library/Caches
cleaning Xcode / Android artifacts
checking Time Machine snapshots
checking deleted-but-open files
None of these solved the issue.
sudo mdutil -i off /
sudo mdutil -E /
If disk usage does not improve, see the Safe Mode section below.
df -h /
👉 Disk space returned to normal immediately.
In some cases, the Spotlight index may be corrupted or locked, and the normal rebuild does not remove it.
If you still see a large .Spotlight-V100 folder (for example, tens or hundreds of GB), use Safe Mode to remove it.
On Apple Silicon (M1/M2/M3):
Shut down your Mac
Press and hold the Power button
When startup options appear:
Select your disk
Hold Shift
Click Continue in Safe Mode
Open Terminal and run:
sudo rm -rf /System/Volumes/Data/.Spotlight-V100
Restart your Mac.
sudo mdutil -i on /
sudo mdutil -E /
Safe Mode:
disables Spotlight services
prevents files from being locked
allows full removal of corrupted index data
Go to:
System Settings → Spotlight → Privacy
Add:
~/Projects
touch ~/Projects/.metadata_never_index
Spotlight is not designed for:
millions of rapidly changing files
build artifacts
dependency folders
index bloat
corruption
disk exhaustion
Spotlight: ON
Siri / Apple Intelligence: OFF (optional)
Dev folders (~/Projects): EXCLUDED
If your macOS disk:
fills up unexpectedly
doesn’t match actual file usage
keeps growing over time
👉 Check .Spotlight-V100 first.
It might not be your files —
it might be the search index itself.
# Check disk usage
df -h /
# Find large folders
sudo du -xhd 1 /System/Volumes/Data | sort -hr | head
# Rebuild Spotlight index
sudo mdutil -E /
# Disable Spotlight (temporary)
sudo mdutil -i off /
# Exclude folder from indexing
touch ~/Projects/.metadata_never_index