You may face a problem to delete Windows service using sc command. You may get a message “The specified service has been marked for deletion error“.
When you try to remove a Windows Service with sc delete <service name>, you may encounter the following error:
[SC] DeleteService FAILED 1072:
The specified service has been marked for deletion.
Following the exact screen capture of the error message:
There are several reasons for this error. Today we will discuss the possible causes of this issue and how can we resolve this error. Following are the list of reasons which can cause this error:
 Microsoft Management Console (MMC) is opened. To ensure all instances are closed, run the following command to kill it:
taskkill /F /IM mmc.exe
 Services console is opened. This is the same as the previous point, since Services console is hosted by MMC.
 Event Viewer is opened. MMC is being used when you open Event Viewer.
 Process Explorer is opened. If it is causing the issue, closing it should lead to automatic removal of the service.
 Task Manager is opened.
Close any of the above running process and try again to delete service. If you still face the problem, there may be other issues as well which require further investigation. Hope this will help you to resolve “DeleteService FAILED 1072” or “The specified service has been marked for deletion“.
If the problem still persists, you can submit your issue in our web hosting community forum.
Looking for Windows VPS / Dedicated Server?
Are you looking for a Windows VPS / Dedicated server? You can refer our hand picked VPS/Dedicated hosting provider.