Delete a Leftover Service with sc delete

Remove orphaned services that spam the event log after their software was uninstalled.

WindowssystemcmdserviceMedium risk
Run `sc delete "OldAppSvc"` in an admin prompt to remove the leftover service permanently.

01Command

Command
$ sc query "OldAppSvc"  ::  then, if it's safe:  sc delete "OldAppSvc"

02What it does

Uninstallers often leave their Windows service behind, which then fails at every boot and clutters the Services list. Check what the service belongs to with `sc query` and stop it with `sc stop` before deleting. The entry disappears from services.msc immediately after deletion (a reboot fully clears running remnants).

03Risk

RiskMedium risk
RequirementsAdministrator command prompt; the service should be stopped (sc stop) before deleting.
!Warning: Never delete a service you can't identify — Windows services like BFE or wuauserv are essential.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • SC — Service Control
    SS64 · technical · 2026-09-17
    Evidence: Documents SC DELETE to remove a service entry, alongside SC QUERY and SC STOP.
  • sc delete
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Reference for the sc delete subcommand that marks an existing service for removal from the registry.

Last verified: 2026-09-19 · Category: System & Settings

06Related solutions