<p>I have a couple old services that I want to completely uninstall. How can I do this?</p>

[{'answer_id': 76101, 'author': 'Mark Schill', 'author_id': 9482, 'author_profile': 'https://Stackoverflow.com/users/9482', 'pm_score': 6, 'selected': False, 'text': '<p>Click <em>Start</em> | <strong>Run</strong> and type <code>regedit</code> in the Open: line. Click OK.</p>\n\n<p>Navigate to <code>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services</code></p>\n\n<p>Scroll down the left pane, locate the service name, right click it and <strong>select Delete</strong>.</p>\n\n<p>Reboot the system.</p>\n'}, {'answer_id': 76127, 'author': 'Lasse V. Karlsen', 'author_id': 267, 'author_profile': 'https://Stackoverflow.com/users/267', 'pm_score': 11, 'selected': True, 'text': '<p>Use the <em>SC</em> command, like this (you need to be on a command prompt to execute the commands in this post):</p>\n\n<pre><code>SC STOP shortservicename\nSC DELETE shortservicename\n</code></pre>\n\n<hr>\n\n<p><strong>Note:</strong> You need to run the command prompt as an administrator, not just logged in as the administrator, but also with administrative rights. If you get errors above about not having the necessary access rights to stop and/or delete the service, run the command prompt as an administrator. You can do this by searching for the command prompt on your start menu and then right-clicking and selecting "Run as administrator". <strong>Note to PowerShell users:</strong> <code>sc</code> is aliased to <code>set-content</code>. So <code>sc delete service</code> will actually create a file called <code>delete</code> with the content <code>service</code>. To do this in Powershell, use <code>sc.exe delete service</code> instead</p>\n\n<hr>\n\n<p>If you need to find the short service name of a service, use the following command to generate a text file containing a list of services and their statuses:</p>\n\n<pre><code>SC QUERY state= all &gt;"C:\\Service List.txt"\n</code></pre>\n\n<p>For a more concise list, execute this command:</p>\n\n<pre><code>SC QUERY state= all | FIND "_NAME"\n</code></pre>\n\n<p>The short service name will be listed just above the display name, like this:</p>\n\n<pre><code>SERVICE_NAME: MyService\nDISPLAY_NAME: My Special Service\n</code></pre>\n\n<p>And thus to delete that service:</p>\n\n<pre><code>SC STOP MyService\nSC DELETE MyService\n</code></pre>\n'}, {'answer_id': 76138, 'author': 'Mariano', 'author_id': 12514, 'author_profile': 'https://Stackoverflow.com/users/12514', 'pm_score': 1, 'selected': False, 'text': '<p>sc delete name</p>\n'}, {'answer_id': 76158, 'author': 'asquithea', 'author_id': 13530, 'author_profile': 'https://Stackoverflow.com/users/13530', 'pm_score': 5, 'selected': False, 'text': '<p>Use <strong>services.msc</strong> or (Start > Control Panel > Administrative Tools > Services) to find the service in question. Double-click to see the service name and the path to the executable.</p>\n\n<p>Check the exe version information for a clue as to the owner of the service, and use Add/Remove programs to do a clean uninstall if possible.</p>\n\n<p>Failing that, from the command prompt:</p>\n\n<pre><code>sc stop servicexyz\nsc delete servicexyz\n</code></pre>\n\n<p>No restart should be required.</p>\n'}, {'answer_id': 76239, 'author': 'Lucas', 'author_id': 5966, 'author_profile': 'https://Stackoverflow.com/users/5966', 'pm_score': 2, 'selected': False, 'text': '<p>Here is a vbs script that was passed down to me:</p>\n\n<pre><code>Set servicelist = GetObject("winmgmts:").InstancesOf ("Win32_Service")\n\nfor each service in servicelist\n    sname = lcase(service.name)\n    If sname = "NameOfMyService" Then \n        msgbox(sname)\n        service.delete \' the internal name of your service\n    end if\nnext\n</code></pre>\n'}, {'answer_id': 242268, 'author': 'CPU_BUSY', 'author_id': 27688, 'author_profile': 'https://Stackoverflow.com/users/27688', 'pm_score': 3, 'selected': False, 'text': '<p>If they are .NET created services you can use the installutil.exe with the /u switch\nits in the .net framework folder like\nC:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727</p>\n'}, {'answer_id': 15275825, 'author': 'user2145033', 'author_id': 2145033, 'author_profile': 'https://Stackoverflow.com/users/2145033', 'pm_score': 3, 'selected': False, 'text': '<p>If you have Windows Vista or above please run this from a command prompt as Administrator:</p>\n\n<pre><code>sc delete [your service name as shown in service.msc e.g moneytransfer]\n</code></pre>\n\n<p>For example: <code>sc delete moneytransfer</code></p>\n\n<p>Delete the folder <code>C:\\Program Files\\BBRTL\\moneytransfer\\</code></p>\n\n<p>Find moneytransfer registry keys and delete them:</p>\n\n<pre><code> HKEY_CLASSES_ROOT\\Installer\\Products\\\n HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\\n HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\EventLog\\\n HKEY_LOCAL_MACHINE\\System\\CurrentControlSet002\\Services\\\n HKEY_LOCAL_MACHINE\\System\\CurrentControlSet002\\Services\\EventLog\\\n HKEY_LOCAL_MACHINE\\Software\\Classes\\Installer\\Assemblies\\ [remove .exe references]\n HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Installer\\Folders\n</code></pre>\n\n<p>These steps have been tested on Windows XP, Windows 7, Windows Vista, Windows Server 2003, and Windows Server 2008.</p>\n'}, {'answer_id': 18865199, 'author': 'Sachidananda naik', 'author_id': 1664913, 'author_profile': 'https://Stackoverflow.com/users/1664913', 'pm_score': 4, 'selected': False, 'text': '<pre><code>SC DELETE "service name"\n</code></pre>\n\n<p>Run the command on cmd as Administrator otherwise you will get this error :- </p>\n\n<blockquote>\n  <p>openservice failed 5 access is denied</p>\n</blockquote>\n'}, {'answer_id': 18964681, 'author': 'Kevin M', 'author_id': 1838481, 'author_profile': 'https://Stackoverflow.com/users/1838481', 'pm_score': 3, 'selected': False, 'text': '<p>We can do it in two different ways</p>\n<p><strong>Remove Windows Service via Registry</strong></p>\n<p>Its very easy to remove a service from registry if you know the right path. Here is how I did that:</p>\n<ol>\n<li><p>Run <strong>Regedit</strong> or <strong>Regedt32</strong></p>\n</li>\n<li><p>Go to the registry entry &quot;HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services&quot;</p>\n</li>\n<li><p>Look for the service that you want delete and delete it. You can look at the keys to know what files the service was using and delete them as well (if necessary).</p>\n</li>\n</ol>\n<p><strong>Delete Windows Service via Command Window</strong></p>\n<p>Alternatively, you can also use command prompt and delete a service using following command:</p>\n<p><strong>sc delete</strong> </p>\n<p>You can also create service by using following command</p>\n<p>sc create &quot;MorganTechService&quot; binpath= &quot;C:\\Program Files\\MorganTechSPace\\myservice.exe&quot;</p>\n<p>Note: You may have to reboot the system to get the list updated in service manager.</p>\n'}, {'answer_id': 33136790, 'author': 'Demodave', 'author_id': 953496, 'author_profile': 'https://Stackoverflow.com/users/953496', 'pm_score': 0, 'selected': False, 'text': '<p>For me my service that I created had to be uninstalled in Control Panel > Programs and Features</p>\n'}, {'answer_id': 36133683, 'author': 'Dilmasegure', 'author_id': 6094055, 'author_profile': 'https://Stackoverflow.com/users/6094055', 'pm_score': 1, 'selected': False, 'text': '<p>Before removing the service you should review the dependencies.</p>\n\n<p>You can check it:</p>\n\n<p>Open <code>services.msc</code> and find the service name, switch to the "Dependencies" tab.</p>\n\n<p>Source: <a href="http://www.sysadmit.com/2016/03/windows-eliminar-un-servicio.html" rel="nofollow">http://www.sysadmit.com/2016/03/windows-eliminar-un-servicio.html</a></p>\n'}, {'answer_id': 49165398, 'author': 'Nic', 'author_id': 2450507, 'author_profile': 'https://Stackoverflow.com/users/2450507', 'pm_score': 5, 'selected': False, 'text': "<p>As described above I executed:</p>\n\n<pre><code>sc delete ServiceName\n</code></pre>\n\n<p>However this didn't work as I was executing it from PowerShell.</p>\n\n<p>When using PowerShell you must specify the full path to <code>sc.exe</code> because PowerShell has a default alias for <code>sc</code> assigning it to <code>Set-Content</code>. Since it's a valid command it doesn't actually show an error message.</p>\n\n<p>To resolve this I executed it as follows:</p>\n\n<pre><code>C:\\Windows\\System32\\sc.exe delete ServiceName\n</code></pre>\n"}, {'answer_id': 60429951, 'author': 'Sergey Vaulin', 'author_id': 3556088, 'author_profile': 'https://Stackoverflow.com/users/3556088', 'pm_score': 1, 'selected': False, 'text': '<p>You can use my small service list editor utility <strong>Service Manager</strong></p>\n\n<p><a href="https://i.stack.imgur.com/Kw4Lc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kw4Lc.png" alt="Preview"></a></p>\n\n<p>You can choose any service > Modify > Delete. Method works immediately, no reboot required.</p>\n\n<p>Executable file: <a href="https://drive.google.com/drive/folders/1NXu810HDv3KYe3LcT8q2gZxQ9zLwuI_n" rel="nofollow noreferrer">[Download]</a></p>\n\n<p>Source code: <a href="https://github.com/devowl/winservicemanager" rel="nofollow noreferrer">[Download]</a></p>\n\n<p>Blog post: <a href="http://www.devowl.net/2019/08/windows-service-create-edit-delete-servicesmsc.html" rel="nofollow noreferrer">[BlogLink]</a></p>\n\n<p>Service editor class: <a href="https://github.com/devowl/winservicemanager/blob/master/WS.Manager/WinService/WinServiceUtils.cs" rel="nofollow noreferrer">WinServiceUtils.cs</a></p>\n'}, {'answer_id': 68771818, 'author': '4F2E4A2E', 'author_id': 543426, 'author_profile': 'https://Stackoverflow.com/users/543426', 'pm_score': 2, 'selected': False, 'text': '<p>This did the job for me on Windows 10:</p>\n<ul>\n<li>start the cmd.exe as admin</li>\n<li>run SC DELETE &quot;com.docker.service&quot;</li>\n<li>reinstall docker</li>\n</ul>\n'}]
['https://Stackoverflow.com/questions/76074', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1204/']