client/lxd_cluster.go
func (r *ProtocolLXD) DeleteClusterMember(name string, force bool) error {
	if !r.HasExtension("clustering") {
		return fmt.Errorf("The server is missing the required \"clustering\" API extension")
	}

	params := ""
	if force {
		params += "?force=1"
	}

	_, err := r.queryStruct("DELETE", fmt.Sprintf("/cluster/members/%s%s", name, params), nil, "", nil)
	if err != nil {
		return err
	}

	return nil
}
func (r *ProtocolLXD) DeleteClusterMember(name string, force bool) error {
	if !r.HasExtension("clustering") {
		return fmt.Errorf("The server is missing the required \"clustering\" API extension")
	}

	params := ""
	if force {
		params += "?force=1"
	}

	_, err := r.queryStruct("DELETE", fmt.Sprintf("/cluster/members/%s%s", name, params), nil, "", nil)
	if err != nil {
		return err
	}

	return nil
}
func ( r * ProtocolLXD ) DeleteClusterMember ( name string , force bool ) error { if ! r . HasExtension ( " " ) { return fmt . Errorf ( " \" \" " ) } params := " " if force { params += " " } _ , err := r . queryStruct ( " " , fmt . Sprintf ( " " , name , params ) , nil , " " , nil ) if err != nil { return err } return nil }
// DeleteClusterMember makes the given member leave the cluster (gracefully or not,
// depending on the force flag)
DeleteClusterMember makes the given member leave the cluster ( gracefully or not depending on the force flag )