How to Delete Windows Service In Command Line or Registry

Author: Peter Barnett           Date: Jul 26, 2019


If you are a fan of tweaking your system and disabling services, you might find that over time your Windows Services list becomes large and unwieldy. It’s easy enough to delete a Windows service using the Command Prompt or Registry editor.

Before you remove a service, you need to understand a few points:

  • When you delete a service, it will disappear forever from the system, and it is not easy to restore it, and in some cases it is simply impossible.
  • Removing certain services can cause the inactivity of certain programs. Therefore you should not delete the service if you are not 100% sure what it is responsible for.
  • Do not remove the Windows 10 system services, as this may lead to the inoperability of the entire system.

You also need to understand when it is necessary to remove the Windows service:

  • Frequently, programs when uninstalled leave their services intact, and every time the computer starts up, the system tries to start such a service, but due to the lack of executable or library files, it cannot do so, generating an error.
  • Some viruses and trojans to disguise their destructive actions can create a new service in the system. And even if your antivirus removes the body of the virus, the service may remain, and you will have to manually remove it.
  • It is also possible that the system performance decreases due to the large number of processes running as services, and you decide to remove (and not just stop) a number of unnecessary services in Windows 10.



1. Open Services With Help of Windows Search Box


Hit Start, type “services” into the search dialog box, and then click the “Services” to get a list of services.

Step 1 to delete Windows service is to Open Services



2. Find the Service and Move to Properties


In the “Services” window, scroll down and find the service you’re after. Right-click the service and choose the “Properties” command.

Find the service



3. The next Step Is to Copy the Service Name


In the service’s properties window, copy (or write down) the text to the right of the “Service name” entry.

Step 3 to delete Windows service is to Copy the Service name



4. Open Command Line With Administrative Privileges


Click Start, and then type “cmd” into the search box. Right-click the “Command Prompt” result, and then choose the “Run as administrator” command.

Open Command line



5. Input and Execute Following Command


At the Command Prompt, you’ll use the following syntax:

sc delete ServiceName

So, to delete the “RetailDemo” service we’re using in our example, we’d type the following text, and then hit Enter:

sc delete RetailDemo

Step 4 to delete Windows service is to Input command



6. Start Windows Registry Editor


Start Regedit.exe and navigate to the following branch:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Start Regedit



7. Delete Service with Help of Regedit.Exe


Each sub-key under the above registry key represents a driver or a Service. The key name is also the short name of the service. Also, you should be able to identify the entry easily by looking at the DisplayName and ImagePath values in the right-pane in the Registry Editor. Find the entry you want to delete. Right-click the appropriate key, and choose Delete. Exit the Registry Editor.




Consider using Action1 to delete Windows service if:


  • - You need to perform this action on multiple (hundreds or even thousands) computers simultaneously.
  • - You have remote employees with computers not connected to your corporate network at all times.

Action1 is a cloud-based platform for patch management, software deployment, software/hardware inventory, endpoint management and endpoint configuration reporting. It is free with basic functionality.

  

Fully functional free edition for up to 10 endpoints with no expiration date. More details >



Relevant How To Articles and Action1 Features:

By continuing to use our website, you agree with our use of cookies in accordance with our Privacy Policy. You can reject cookies by changing your browser settings.     
Ok, got it