What deleting a service means and when you need to do it
A Windows service is a program that runs in the background without you opening it — things like printer drivers, security software, or cloud backup tools. When you uninstall a program, it usually removes itself from the services list automatically. But sometimes a service stays behind, taking up memory or causing problems, and you need to remove it manually.
You might need to delete a service if you uninstalled software but the service still appears in your system, if a program installed a service you don't want running, or if a service is causing your computer to run slowly. Deleting a service does not uninstall the program itself — it only stops Windows from running that particular background process.
The safest approach is to uninstall the program through Windows first, then check whether the service is gone. If it remains, you can delete it using the command line. This guide covers both paths.
Key Takeaways
- Uninstalling a program through Settings or Control Panel removes most services automatically, so try that first before using the command line.
- To delete a service manually, you open Command Prompt as Administrator and type a single command with the service name.
- You can find the exact service name by opening Services (services.msc) and looking at the name in the leftmost column, not the display name.
- Deleting a service does not uninstall the program — it only stops Windows from running that background process, so the program files may remain on your computer.
- If you delete a service and the program stops working, you can reinstall the program to restore the service.
Uninstall the program first
Before you delete a service manually, uninstall the program that created it. This removes the service in most cases and is the safest method because the program's uninstaller knows which files and services belong together.
Open Settings by pressing the Windows key and typing "Settings", then click Settings. Go to Apps, then Apps and Features. Scroll down to find the program you want to remove, click it, and click Uninstall. Follow the prompts to completion.
After the uninstall finishes, restart your computer. Then check whether the service is gone by opening Services — press the Windows key, type "Services", and click Services. Scroll through the list and look for the service name. If it is not there, the uninstall worked and you are done.
Find the exact service name in Services
If the service is still in the list after uninstalling, you need its exact name to delete it. Open Services again (Windows key, type "Services", click Services). Scroll through the list until you find the service you want to remove.
Look at the leftmost column — that is the service name, which is usually one word or a short phrase with no spaces, like "PrintSpooler" or "DiagTrack". The middle column shows the display name, which is the human-readable version like "Print Spooler" or "Connected User Experiences and Telemetry". You need the service name, not the display name, for the deletion command.
Write down the service name exactly as it appears, including capital letters. If you copy and paste it from the Services window, that works too.
Delete the service using Command Prompt
Open Command Prompt as Administrator. Press the Windows key, type "Command Prompt", right-click Command Prompt, and click Run as Administrator. Click Yes when Windows asks for permission.
Type this command, replacing ServiceName with the exact service name you found in Services:
sc delete ServiceName
For example, if the service name is "DiagTrack", you would type:
sc delete DiagTrack
Press Enter. If the command works, you will see a message saying "[SC] DeleteService SUCCESS". Close Command Prompt. The service is now deleted and will not run when you restart your computer.
If you see an error message like "The specified service does not exist", you may have typed the service name incorrectly. Go back to Services, double-check the name, and try again.
What happens after you delete a service
Once a service is deleted, Windows will no longer run it in the background. The program files themselves may still be on your computer — deleting a service does not remove the program. If you want to remove the program completely, you can uninstall it through Settings or Control Panel as described above.
If you delete a service and later realize you need it, you can reinstall the program. The installer will recreate the service. You can also restore your computer to an earlier point using System Restore if something stops working, though this is rarely necessary for a single deleted service.
Some services are part of Windows itself, like Windows Update or Defender. Deleting these services is possible but not recommended, as they handle important system functions. Stick to deleting services created by third-party programs you installed.
Troubleshooting if the deletion fails
If you get an error when trying to delete a service, the most common reason is that the service name is spelled incorrectly or has capital letters in the wrong places. Go back to Services, find the service, and copy the name directly from the Service Name column. Paste it into your command instead of typing it.
Another reason deletion might fail is that the service is still running. Go to Services, find the service in the list, right-click it, and click Stop. Wait a few seconds, then try the delete command again.
If you still see an error, the service may be protected by Windows or by security software. In that case, it is usually safe to leave it alone — protected services are there for a reason. If the service is slowing down your computer, try disabling it instead: in Services, right-click the service, click Properties, change the Startup Type to Disabled, and click OK.
Frequently Asked Questions
Can I delete a Windows service without using Command Prompt?
Not easily. Services is a viewing tool — it shows you services but does not have a delete button. Command Prompt is the standard way to delete a service. Some third-party tools offer a graphical interface for this, but Command Prompt is built into Windows and requires no downloads.
What if I delete a service and the program stops working?
Reinstall the program. The installer will recreate the service. If you want to keep the program but do not want the service running, disable it instead of deleting it: in Services, right-click the service, click Properties, change Startup Type to Disabled, and click OK.
Is it safe to delete any service I see in the list?
No. Stick to services created by programs you installed and uninstalled. Windows services like Windows Update, Defender, and audio services should stay. If you are unsure whether a service is safe to delete, search for the service name online or disable it instead — disabling is reversible and safer than deleting.
Do I need to restart my computer after deleting a service?
Not when ready, but restarting is a good idea to make sure the deletion took effect and nothing is trying to restart the service. Restart when you have time, and the service will not run on the next startup.
Can I undo a service deletion?
Yes. Reinstall the program that created the service, and the installer will recreate it. You can also use System Restore to revert your computer to a point before you deleted the service, though this will undo other changes you made around the same time.