func (c *Client) DeleteService(i *DeleteServiceInput) error {
	if i.ID == "" {
		return ErrMissingID
	}

	path := fmt.Sprintf("/service/%s", i.ID)
	resp, err := c.Delete(path, nil)
	if err != nil {
		return err
	}

	var r *statusResp
	if err := decodeBodyMap(resp.Body, &r); err != nil {
		return err
	}
	if !r.Ok() {
		return ErrNotOK
	}
	return nil
}
// DeleteService updates the service with the given input.
DeleteService updates the service with the given input.
// DeleteService updates the service with the given input .
func (c *Client) DeleteService(i *DeleteServiceInput) error {
	if i.ID == "" {
		return ErrMissingID
	}
	path := fmt.Sprintf("/service/%s", i.ID)
	resp, err := c.Delete(path, nil)
	if err != nil {
		return err
	}
	var r *statusResp
	if err := decodeBodyMap(resp.Body, &r); err != nil {
		return err
	}
	if !r.Ok() {
		return ErrNotOK
	}
	return nil
}
func ( c * Client ) DeleteService ( i * DeleteServiceInput ) error { if i . ID == " " { return ErrMissingID } path := fmt . Sprintf ( " " , i . ID ) resp , err := c . Delete ( path , nil ) if err != nil { return err } var r * statusResp if err := decodeBodyMap ( resp . Body , & r ) ; err != nil { return err } if ! r . Ok ( ) { return ErrNotOK } return nil }
DeleteService updates the service with the given input.
DeleteService updates the service with the given input .