Windows API reference
NtDeleteFile
Native file deletion.
- Library
- Ntdll.dll
- Category
- Helper
- Suspicion
- medium
- MITRE ATT&CK
- Not mapped
Detection summary
NtDeleteFile maps to Sysmon Event 23 and Microsoft-Windows-Kernel-File; these events record the OS effect, not the API call.
- Sysmon: Sysmon Event 23
- ETW: Microsoft-Windows-Kernel-File
- Notes: Sysmon Event 23 records file deletion only when Sysmon archive mode is enabled; Event 26 is the non-archived variant. Microsoft-Windows-Kernel-File records file create, read, write, rename and close operations when enabled.
Sources and documentation
- Microsoft Learn documentation (equivalent API documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Native applications and system tools that delete files directly.
Related APIs
- DeleteFileW — Kernel32.dll