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.