Software⏱️ 2 min read📅 2026-05-31

How to Fix: How to solve "The specified service has been marked for deletion" error

How to fix The specified service has been marked for deletion error in Windows

Quick Answer: The error indicates that the service is being deleted by another process. Try using the "sc delete" command with the "/force" option to force deletion.

The error 'The specified service has been marked for deletion' occurs when the Windows Service is being deleted, but it's still referenced somewhere in the system. This can happen due to various reasons such as a leftover reference in the registry or another application using the same service.

💡 Why You Are Getting This Error

  • [Cause]

🛠️ Step-by-Step Verified Fixes

Method 1: Using the Command Prompt to Delete the Service Reference

  1. Step 1: Open the Command Prompt as an administrator and type the following command: sc config <service name> delete. Press Enter to execute the command.

Method 2: Using the Windows Registry Editor to Remove References

  1. Step 1: Press the Windows key + R to open the Run dialog box, type regedit, and press Enter. Navigate to the key HKEY_LOCAL_MACHINE\Services/currentcontrolset\Services\.

✨ Wrapping Up

By following these steps, you should be able to resolve the 'The specified service has been marked for deletion' error and successfully delete the Windows Service.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions