code: func (lb *loadBalancer) removeHostsFromRule(lbRule *cloudstack.LoadBalancerRule, hostIDs []string) error {
  	p := lb.LoadBalancer.NewRemoveFromLoadBalancerRuleParams(lbRule.Id)
  	p.SetVirtualmachineids(hostIDs)
  
  	if _, err := lb.LoadBalancer.RemoveFromLoadBalancerRule(p); err != nil {
  		return fmt.Errorf("error removing hosts from load balancer rule %v: %v", lbRule.Name, err)
  	}
  
  	return nil
  }
docs: // removeHostsFromRule removes hosts from a load balancer rule.