// DeleteACL deletes an existing Apache Kafka Access Control List.
DeleteACL deletes an existing Apache Kafka Access Control List.
// DeleteACL deletes an existing Apache Kafka Access Control List .
func (c *Client) DeleteACL(acl ACL) error {
	if err := acl.Validate(); err != nil {
		return err
	}
	send, err := json.Marshal(acl)
	if err != nil {
		return err
	}
	resp, err := c.Do(http.MethodDelete, aclPath, contentTypeJSON, send)
	if err != nil {
		return err
	}
	if resp.StatusCode == http.StatusBadRequest {
		return fmt.Errorf("no authorizer is configured on the broker")
	}
	return resp.Body.Close()
}
func ( c * Client ) DeleteACL ( acl ACL ) error { if err := acl . Validate ( ) ; err != nil { return err } send , err := json . Marshal ( acl ) if err != nil { return err } resp , err := c . Do ( http . MethodDelete , aclPath , contentTypeJSON , send ) if err != nil { return err } if resp . StatusCode == http . StatusBadRequest { return fmt . Errorf ( " " ) } return resp . Body . Close ( ) }
DeleteACL deletes an existing Apache Kafka Access Control List.
DeleteACL deletes an existing Apache Kafka Access Control List .
// unlike with other calls this one returns a plain text with no authorize-type error message // instead of 403, so make that check only on the acl API: