Deleting a service from the control manager databaseΒΆ

delete_service()

Mark a service for deletion


SYNTAX

delete_service(service_handle)

Marks the service for deletion from the service control manager database. The service is not deleted until all handles open to it are closed and the service is not running.

service_handle

A handle returned by create_service() or open_service().

The function returns 0 if successful, or a non-zero value if an error occurs. The Windows error code is stored in sys.Errno.


RELATED TOPICS

Servers

Windows service management functions