How to delete Service in Windows Server 2012
sc [<ServerName>] delete [<ServiceName>]
|<ServerName>||Specifies the name of the remote server on which the service is located. The name must use the Universal Naming Convention (UNC) format (for example, \\myserver). To run SC.exe locally, omit this parameter.|
|<ServiceName>||Specifies the service name returned by the getkeyname operation.|
|?||Displays help at the command prompt.|
Use Add or Remove Programs on Control Panel to delete DHCP, DNS, or any other built-in operating system services. Note that Add or Remove Programs will not only remove the registry subkey for the service, but it will also uninstall the service and delete any shortcuts to it.
To delete the service subkey NewServ from the registry on the local computer, type:Copy
sc delete newserv