Windows API reference
DeleteService
Marks a service for deletion; the service record is removed when its last handle closes.
- Library
- Advapi32.dll
- Category
- Service Control
- Suspicion
- high
- MITRE ATT&CK
- Not mapped
Detection summary
DeleteService has no direct event; the observable effect is removal of the service registry key and related process activity.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Monitor Sysmon 12/13 for deletion or modification under the Services registry key and Sysmon 1 for service-host activity. Use EDR hooks for the API call; the service deletion event is not a Sysmon event.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Installers, updaters, drivers and enterprise management software.
Related APIs
- CreateServiceW — Advapi32.dll