{"id":213,"date":"2015-06-15T00:40:48","date_gmt":"2015-06-14T13:40:48","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=213"},"modified":"2022-11-14T20:05:43","modified_gmt":"2022-11-14T09:05:43","slug":"how-to-delete-a-windows-service-from-the-command-line","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/how-to-delete-a-windows-service-from-the-command-line\/","title":{"rendered":"How to Delete a Windows Service from the Command Line"},"content":{"rendered":"<p>If you need to delete a windows service from the command line it is a two step process if the service is currently started. \u00a0If you don&#8217;t know the service name that you wish to delete you can find it out by typing the following command in a command prompt:<\/p>\n<p><code>sc query | find \"SERVICE_NAME\"<\/code><\/p>\n<h2>Step 1 &#8211; Stop the Service<\/h2>\n<p><code>sc stop [Service name]<\/code><\/p>\n<p>where [Service name] has been obtained from the the query above<\/p>\n<h2>Step 2 &#8211; Delete the Service<\/h2>\n<p><code>sc delete [service name]<\/code><\/p>\n<p>where [Service name] has been obtained from the the query above<\/p>\n<p><em>Please note that many windows services can&#8217;t be deleted using the above commands. \u00a0This is only applicable to third party applications.<\/em><\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>If you need to delete a windows service from the command line it is a two step process if the service is currently started. \u00a0If you don&#8217;t know the service name that you wish to delete you can find it out by typing the following command in a command prompt: sc query | find &#8220;SERVICE_NAME&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[9],"article-tag":[157,155,156],"class_list":["post-213","article","type-article","status-publish","format-standard","hentry","article-category-windows-commands","article-tag-delete-service","article-tag-delete-service-command-line","article-tag-windows-command-prompt"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":20,"sum_votes":73},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/213\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=213"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}