Windows API reference
DeleteFileW
Deletes a file.
- Library
- Kernel32.dll
- Category
- Helper, Ransomware
- Suspicion
- medium
- MITRE ATT&CK
- T1485 Data Destruction
Detection summary
DeleteFileW 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 (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Common in general Windows applications; usage varies by application type.