If you need to delete a windows service from the command line it is a two step process if the service is currently started. If you don’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 "SERVICE_NAME"
Step 1 – Stop the Service
sc stop [Service name]
where [Service name] has been obtained from the the query above
Step 2 – Delete the Service
sc delete [service name]
where [Service name] has been obtained from the the query above
Please note that many windows services can’t be deleted using the above commands. This is only applicable to third party applications.
Click to rate this post!
[Total: 19 Average: 3.7]
Thanks. I infrequently need to remove a service, so having the instructions available is a great time-saver