.METADATA_NEVER_INDEX

METADATA_NEVER_INDEX File

macOS Spotlight "Never Index" Marker File
Ask a question
QUICK ANSWER

A .metadata_never_index file is an empty, zero-byte marker Apple's Spotlight uses to decide whether to index a drive. When the file exists at the root of a volume, Spotlight skips that drive entirely, and its files won't appear in search results. There is no content to open. To re-enable Spotlight on that drive, delete the file.

Developer: Apple Category: System Files MIME: application/octet-stream
OPENS ON macOS
Related: .NOMEDIA · .DLL · .TMP · .LNK

On this page

19k+ extensions indexed
Last reviewed Jul 10, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the METADATA_NEVER_INDEX file format?

.metadata_never_index is associated with hidden marker files that are part of the macOS system environment. Files of this type are used to deny Spotlight indexing of selected folders, files, or volumes on the hard drive. Unlike ordinary files, a .metadata_never_index file carries no data - its filename alone is the payload, communicating to Spotlight not to index certain elements, hence the 'never index' in its name. The file is a Unix dotfile, making it invisible in Finder by default.

.metadata_never_index file location

.metadata_never_index files can be found on flash drives, iPods, and other types of volume. These files prevent automatic indexing of folder contents each time a device is connected to the computer. They are placed in the root folder of the volume - on macOS, the top-level directory the drive mounts to. Deleting a .metadata_never_index file allows Spotlight to resume indexing the folder or volume where the file was stored, after which the mds daemon builds a new .Spotlight-V100 database on that volume.

A closely related variant, .metadata_never_index_unless_rootfs, applies the same exclusion with a narrow exception for the root filesystem. On Android and Linux, the .nomedia file serves a similar purpose for media scanners. The format was introduced in Mac OS X 10.4 Tiger alongside Spotlight in 2005 and is still in active use on all current macOS releases.

Security & safety

RISK: LOW

The file itself is harmless - it's empty and contains no code. The only real risk is operational: if you delete it not realizing why a drive wasn't being indexed, Spotlight will start indexing that volume (extra disk/CPU activity, and a .Spotlight-V100 database appears). Conversely, an unexpected .metadata_never_index on a drive can be a benign tool leftover, not a sign of compromise. Don't paste random Terminal commands from forums; the supported, reversible way to exclude folders is System Settings > Spotlight > Privacy.

Format details

in a nutshell
FULL NAMEmacOS Spotlight "Never Index" Marker Fileaka .metadata_never_index, Spotlight exclusion file
DEVELOPERApplesince Mac OS X 10.4 Tiger, 2005 (with the introduction of Spotlight)
CATEGORYSystem Files
MIME TYPEapplication/octet-stream
TYPEEmpty marker/flag file (its presence, not its contents, is the data)

Programs that open METADATA_NEVER_INDEX files

macOS3 apps
Finder (with hidden files shown) Built-in Press Command-Shift-Period to reveal hidden files; the empty .metadata_never_index appears at the drive root. There is nothing inside to open - delete it to re-enable indexing.
Terminal (built-in) Built-in List it with ls -la /Volumes/YourDrive; create with touch /Volumes/YourDrive/.metadata_never_index; remove with rm. Use mdutil -i on /Volumes/YourDrive to turn indexing back on.
Any text editor (e.g. TextEdit, BBEdit) Built-in If you open it, you'll see an empty document - it carries no readable content by design.

Technical details

deep spec
File typeEmpty marker/flag file - its presence on a volume, not its contents, is the data
DeveloperApple Inc.
Associated operating systemmacOS (all versions since Mac OS X 10.4 Tiger)
Typical file size0 bytes - the file is intentionally empty; occasionally a few bytes if written by a third-party tool
Exact file name`.metadata_never_index` - case-sensitive; the dot-prefixed name is fixed and must match exactly
VisibilityHidden Unix dotfile - the leading dot conceals it from Finder and standard directory listings by default
Required locationRoot directory of a target volume (e.g., `/Volumes/MyDrive/.metadata_never_index`)
Internal structureNone - no header, no payload, no magic bytes; the file is empty by design
MIME type`application/octet-stream`; reported as `inode/x-empty` on some Unix systems
Effect on SpotlightPrevents the `mds` and `mdworker` daemons from building a `.Spotlight-V100` index on the volume
Creation methodTerminal: `touch /Volumes/<name>/.metadata_never_index`; also placed automatically by macOS on system partitions
Removal effectDeleting the file re-enables Spotlight indexing of that volume on the next mount or connection
Sibling flag file`.metadata_never_index_unless_rootfs` - identical behavior with a narrow exception for the root filesystem
EncodingNone - no character encoding applies; the file has no readable content
Cross-platform analogueAndroid/Linux `.nomedia` suppresses media scanner indexing via the same name-presence mechanism
ReleasedMac OS X 10.4 Tiger, 2005 (with the introduction of Spotlight)
Latest versionN/A (the file is just a name-based flag; no internal version)
Specificationdeveloper.apple.com

Community Q&A

asked by users
Ask a quick question
Get help from people who work with METADATA_NEVER_INDEX files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about METADATA_NEVER_INDEX files.

Frequently asked questions

What is a .metadata_never_index file?
It's an empty macOS flag file. When it exists at the root of a drive, Spotlight skips indexing that whole volume, so its files won't appear in Spotlight search. It has no content to open.
Can I delete the .metadata_never_index file?
Yes. Deleting it lets Spotlight index that drive again. After removing it you may want to run mdutil -i on /Volumes/YourDrive (or just wait) to rebuild the index.
Why isn't Spotlight finding files on my external drive?
A likely cause is a .metadata_never_index file at the drive's root telling Spotlight not to index it. Show hidden files (Command-Shift-Period) to check, and delete the flag to re-enable search.
How do I stop Spotlight from indexing a drive?
Create an empty file named exactly .metadata_never_index at the drive's top level: in Terminal, touch /Volumes/YourDrive/.metadata_never_index. Or use the supported route: System Settings > Spotlight > Privacy and add the folder/drive.
Is the file safe / is it a virus?
It's safe - it's a zero-byte system flag with no code. Finding one on a USB stick or external drive is normal; some backup and utility tools create it. It is not malware.
Why can't I see the file in Finder?
The leading dot makes it a hidden file. Press Command-Shift-Period in Finder to show hidden files, or list it in Terminal with ls -la.

References

1Apple Developer Archive - Spotlight & file metadatadeveloper.apple.com
2Apple Support - Change Spotlight Privacy settings on Macsupport.apple.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.TMPTemporary File

Related extensions

.NOMEDIAAndroid No-Media Marker File
.DLLDynamic Link Library
.TMPTemporary File
.LNKWindows Shell Link (Shortcut)
.PKGmacOS Installer Package
.ETLEvent Trace Log

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z