Use the SC command's Delete option to remove the Endeca Server Windows service.
Before deleting the service, make sure that you have Administrator rights.
sc delete serviceNamewhere serviceName is the name of the service to be deleted.
To delete the Endeca Server Windows service:
[SC] DeleteService SUCCESS
[SC] OpenService FAILED 5: Access is denied.
If you do receive this error, first verify that you are a member of the Administrators group on the machine. If you do have Administrator rights, check that you are opening the Command Prompt with the Run as administrator option.