02 Aug 2025

How and why to disable Spotlight

Category howto

Before knowing how, lets argue about why for a bit.

Why ?

How ?

Check current status of indexing

sudo mdutil -s -a
Password:
/:
	Indexing and searching disabled.
/System/Volumes/Data:
	Indexing and searching disabled.
/System/Volumes/Preboot:
	Indexing enabled.

Set special file to tell Spotlight not to index. You can put that file to any path and it will be excluded from index

sudo touch /Volumes/MyExternalDrive/.metadata_never_index

Clean up existing indexes

sudo mdutil -E /Volumes/MyExternalDrive
sudo mdutil -i off /Volumes/MyExternalDrive

You can uncheck all indexing types in Spotlight settings, you don’t need them if you want to complete disable spotlight indexing.

Spotlight Settings

As you can see, there are even some telemetry gathered for your private files, via “Help Improve Apple to Search” most probably you do not need that, so toggle it off too.

Oftent times after major and minor updates those settings will be reset by the update, so make sure you check it from time to time until eventually you will decide to disable them all.

Uncheck spotlight hotkey if you want to use another launcher. (OverLauncher for instance.)

Spotlight Hotkey

Hardcore mode (SIP must be disabled)

If you can just use Linux/BSD/WhateverNix instead of MacOS, but don’t think Gnome don’t do similar things :-)

References

Comments