How to Delete or Remove a Service in Windows
In this article
To delete a service in Windows, you must use the Command Prompt with administrative privileges and the sc delete command. Because Windows does not provide a "Delete" button within the standard Services management console (services.msc) to prevent accidental system failure, this manual command-line approach is the only native way to completely remove a service entry from the registry. This process removes the service's configuration and its presence from the list of system services, effectively stopping it from ever starting again.
What You'll Need
- A computer running Windows (Windows 10, 11, or Server versions).
- An account with Administrator privileges.
- The exact "Service Name" (which is often different from the "Display Name").
Step-by-Step
- Identify the Exact Service Name: Open the Services management console by pressing
Win + R, typingservices.msc, and pressing Enter. Find the service you wish to remove in the list. Right-click the service and select Properties. In the Properties window, look at the Service name: field at the top. This is the internal identifier used by the system. Copy this name exactly, as the "Display Name" (the one visible in the main list) will not work with the command line. Note that labels and menu options may differ slightly depending on your specific version of Windows or regional settings. - Stop the Service: Before deleting a service, it is critical to stop it if it is currently running. In the same Properties window, if the service status is "Running," click the Stop button. If the service is already stopped, you can skip this step.
- Open Command Prompt as Administrator: Click the Start button and type
cmdinto the search bar. Right-click on Command Prompt and select Run as administrator. This is a mandatory step; if you run the Command Prompt as a standard user, you will receive an "Access Denied" error because modifying system services requires elevated permissions. - Execute the Delete Command: In the Command Prompt window, type the following command, replacing
[ServiceName]with the exact internal name you copied in step 1:sc delete [ServiceName]. For example, if the service name is "MyOldAppService", you would typesc delete MyOldAppService. If the service name contains spaces, you must enclose the name in double quotation marks, such assc delete "My Old App Service". - Verify the Removal: Once you press Enter, the Command Prompt should return a message stating
[SC] DeleteService SUCCESS. To confirm, return to theservices.mscwindow. You may need to right-click in the list and select Refresh to see the changes. The service should no longer appear in the list. - Restart the Computer: While the service is marked for deletion immediately, Windows often requires a reboot to fully clear the service from the system memory and finalize the removal of the registry keys.
Common Mistakes
The most frequent mistake is using the Display Name instead of the Service Name. For example, a service might be displayed as "Google Update Service (gupdate)", but its actual service name is simply "gupdate". If you type the display name into the Command Prompt, the system will return an error stating that the specified service does not exist. Always double-check the Properties window to ensure you have the internal identifier.
Another common error is failing to run the Command Prompt as an administrator. Users often open the terminal normally and then wonder why the command is rejected. Without the administrative token, the sc (Service Control) tool cannot access the protected areas of the Windows Registry where service configurations are stored.
Users also frequently forget to stop the service before attempting to delete it. While the sc delete command will mark a service for deletion even if it is running, the service will not actually disappear from the list until it is stopped or the system is restarted. This can lead to confusion where the user believes the command failed because the service is still visible in services.msc.
Tips
If you are unsure whether you should delete a service, try disabling it first. In the service Properties window, change the Startup type to Disabled and click Apply. This prevents the service from starting but allows you to easily re-enable it if you discover that another program depends on it. Deleting a service is permanent and much harder to undo than disabling one.
For those who prefer a graphical interface over the command line, there are third-party system utilities that can manage services. However, using the built-in sc command is the safest method because it does not require installing external software that could potentially introduce security vulnerabilities or system instability.
When dealing with services that have complex names, you can use the sc query command to list services and verify the exact spelling. Typing sc query type= service will provide a comprehensive list of all installed services and their current status, which can help you identify the correct name if you cannot find it in the services.msc console.
Troubleshooting
If you receive an "Access Denied" error despite running the Command Prompt as an administrator, the service may be protected by a higher-level system permission or by an antivirus program. Check if your security software is blocking changes to system services and temporarily disable the "Self-Protection" feature of the antivirus if necessary.
If the Command Prompt says the service was successfully deleted, but it still appears in the Services list, this is usually because the service is still running or the services.msc window was not refreshed. Close the Services window, restart your computer, and then reopen services.msc. If it still persists, the service may have a "zombie" process that is preventing the registry key from being fully purged.
In cases where the sc delete command fails due to a corrupted registry entry, you may need to manually remove the service key from the Registry Editor. Open regedit, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services, find the folder named after your service, and delete that folder. Warning: Modifying the registry is risky. Deleting the wrong key can cause Windows to fail to boot or result in total system instability. Always export a backup of the registry key before deleting it.
Frequently Asked Questions
Can I recover a service after deleting it?
No, there is no "Undo" or "Recycle Bin" for services. Once a service is deleted via the sc delete command, the configuration is gone. To restore it, you would typically need to reinstall the software that originally provided the service.
Is it safe to delete any service I don't recognize?
No. Many services with obscure names are critical for Windows system stability, networking, or hardware drivers. Deleting a core Windows service can lead to the "Blue Screen of Death" (BSOD) or prevent your computer from booting. Only delete services associated with software you have intentionally uninstalled or third-party apps you no longer use.
What is the difference between stopping, disabling, and deleting a service?
Stopping a service ends its current process but allows it to start again later. Disabling a service prevents it from starting automatically or manually. Deleting a service removes the service entry entirely from the operating system's registry.
Why does the service say "marked for deletion"?
This happens when the sc delete command has been executed, but the service is still running or is being accessed by another program. The service will be fully removed as soon as the process terminates or the system is rebooted.
Does deleting a service remove the actual files from my hard drive?
No. The sc delete command only removes the registration of the service in Windows. The actual .exe or .dll files associated with the service remain on your disk. You must manually delete those files or use the software's official uninstaller to remove them completely.