func (c *Concierge) Delete() error {
	var service *mgr.Service
	ok, err := c.ServiceExists()
	if err != nil {
		return errors.Wrap(err, "error checking if the service exists")
	}
	if !ok {
		return errors.Errorf("service %s not found", c.path)
	}

	if service, err = c.fetchService(); err != nil {
		return errors.Wrap(err, "error fetching the service")
	}
	defer service.Close()

	return service.Delete()
}
// Delete removes the service and any registry keys.
Delete removes the service and any registry keys.
// Delete removes the service and any registry keys .
func (c *Concierge) Delete() error {
	var service *mgr.Service
	ok, err := c.ServiceExists()
	if err != nil {
		return errors.Wrap(err, "error checking if the service exists")
	}
	if !ok {
		return errors.Errorf("service %s not found", c.path)
	}
	if service, err = c.fetchService(); err != nil {
		return errors.Wrap(err, "error fetching the service")
	}
	defer service.Close()
	return service.Delete()
}
func ( c * Concierge ) Delete ( ) error { var service * mgr . Service ok , err := c . ServiceExists ( ) if err != nil { return errors . Wrap ( err , " " ) } if ! ok { return errors . Errorf ( " " , c . path ) } if service , err = c . fetchService ( ) ; err != nil { return errors . Wrap ( err , " " ) } defer service . Close ( ) return service . Delete ( ) }
Delete removes the service and any registry keys.
Delete removes the service and any registry keys .