How to safely disable Spotlight indexing without breaking macOS
There is a particular kind of frustration that ends with the words "I just want to turn this thing off". On Sequoia and Tahoe 26 a lot of Mac users have arrived at exactly that thought about Spotlight — often after watching mdsstores chew…
There is a particular kind of frustration that ends with the words "I just want to turn this thing off". On Sequoia and Tahoe 26 a lot of Mac users have arrived at exactly that thought about Spotlight — often after watching mds_stores chew through their SSD for days at a time, a pattern documented in detail in Spotlight eating your SSD on Sequoia. The good news is that you can disable indexing — selectively, completely, or temporarily — without breaking the rest of the OS. The less good news is that "turn Spotlight off" means different things to different people, and choosing the wrong off-switch will silently break features you actually use.
This post walks through every supported way to stop Spotlight from indexing, what each one trades away, and how to reverse the change in one line if you regret it.
What turning Spotlight off actually disables
Spotlight is not one feature. It is three:
- The metadata indexer —
mds,mds_stores, and themdworker_sharedimporters. This is what writes the on-disk index of file attributes and text content. - The query layer —
mdfind, the Finder search bar, Mail search, the Photos library's content search, and the system-wide search APIs apps like Mail and Notes use under the hood. - The ⌘Space launcher UI — the keyboard hotkey that opens the floating search panel.
Most "turn Spotlight off" advice on the internet conflates all three. They are independent. You can detach the hotkey without disabling the indexer; you can disable the indexer on one volume without disabling it on another; you can keep system features working while excluding noisy paths from indexing.
Option 1 — Detach the hotkey, keep the indexer
If your only complaint is "⌘Space is now occupied by something nicer", this is all you need.
Open System Settings → Keyboard → Keyboard Shortcuts → Spotlight, and uncheck "Show Spotlight search". macOS releases the global hotkey immediately, and the indexer keeps doing its job. Finder search, Mail search, and Photos still work; you have just stopped opening the Spotlight panel.
This is the recommended first step before installing any third-party launcher. Detaching the hotkey is a one-line decision; you can re-check the box and you are back where you started in three seconds.
Option 2 — Exclude specific paths
If your complaint is "Spotlight is indexing my dev tree and burning CPU", you do not need to disable the indexer — you need to scope it. macOS supports this natively.
Open System Settings → Spotlight → Privacy, click +, and add the path. macOS pauses indexing on it within a minute and removes its existing entries from the store. Common exclusions:
- Repository roots that contain
node_modules,.venv,target,build,vendor - Time Machine destinations and backup snapshots
- External drives, especially slow USB media
- iCloud Drive subfolders that sync constantly
From the command line you can do the same per-volume:
sudo mdutil -i off /Volumes/Backup
mdutil -i off is reversible with mdutil -i on. Both run quickly; the only cost is the time it takes to re-import the path the next time you flip it back on.
OSXDaily's Spotlight fix guide covers the same per-volume commands. They have been stable across macOS releases for a decade.
Option 3 — Disable indexing on a single volume
If the noisy volume is an entire disk — most often an external — you can disable indexing for the whole thing:
sudo mdutil -i off /Volumes/MyDrive
sudo mdutil -E /Volumes/MyDrive
The first command turns indexing off. The second erases the existing index so it does not sit on disk taking up space. Finder search still works on that volume; it falls back to a slower live filesystem scan instead of consulting the index.
This is the right answer for a Time Machine destination, a SuperDuper clone, or any external drive you mostly use for cold storage.
Option 4 — Disable indexing globally
If you want the indexer fully silent — usually because you have decided to commit to a third-party launcher with its own index — disable indexing on /:
sudo mdutil -a -i off
-a applies to all volumes. After this command runs, mds_stores will be idle, no new metadata will be written, and mdfind will return empty results. The Finder search bar will fall back to a live filesystem scan, which is noticeably slower but still works for filename matches.
The trade-off is real. Disabling indexing globally breaks:
- Content search in Mail, Notes, and Messages (the apps still open and read; you just cannot search inside them)
- Photos library content search ("dog", "beach", etc.)
- Smart folder rules that depend on metadata predicates
- Spotlight Suggestions and Siri Suggestions
If you are running on Apple Silicon with plenty of RAM and disk, most users find this trade-off unpleasant. If you are on an older Intel Mac where Spotlight has been the main source of fan noise for years, it is often the right call.
To re-enable globally:
sudo mdutil -a -i on
Option 5 — Stop the daemon entirely
This is the nuclear option and almost no one should run it. You can launchctl unload the Spotlight launchd plist and prevent mds from starting at all:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
This survives reboots. It also breaks more system features than Option 4 — anything that talks to mds directly will start returning errors, not just empty results. Apple's own eclectic light writeup documents the failure modes; most of them are obscure but real (Find My Mac metadata, certain backup tools, parts of Time Machine itself).
To reverse:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
If you find yourself reaching for this option, the real fix is usually a path exclusion you missed. Try Option 2 again first.
A pragmatic middle path
Most developers I know end up in roughly the same configuration:
- ⌘Space rebound to a local-only launcher like CmdSpace.
- Spotlight indexer left on, but with five to ten Privacy exclusions covering all developer trees.
- Search results trimmed to just Applications, System Settings, and Documents.
Suggestions from AppleandSiri Suggestionsturned off in Spotlight → Search Results.
This gives you working Finder/Mail/Photos search, sub-25ms launcher search through CmdSpace, and a quiet indexer that is no longer fighting your daily work. CmdSpace runs its own Rust-backed local index — independent of mds, no telemetry, $29 one-time. If you want the migration steps end to end, see our Spotlight-to-CmdSpace guide.
A quick recovery cheatsheet
If anything in this post leaves your machine in a state you do not want:
# Re-enable indexing on a single volume
sudo mdutil -i on /Volumes/MyDrive
# Re-enable indexing everywhere
sudo mdutil -a -i on
# Force a fresh rebuild on the system volume
sudo mdutil -E /
# Reload the daemon if you unloaded it
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
None of these commands destroy data — they only operate on Spotlight's own index. The worst case after running any of them is "wait an hour for the index to rebuild".