// DeleteAccessRule remove an access rule so it is no longer evaluated during
// requests. This will apply to all zones owned by the account.
// DELETE accounts/:account_identifier/firewall/access_rules/rules/:identifier
DeleteAccessRule remove an access rule so it is no longer evaluated during
requests. This will apply to all zones owned by the account.
DELETE accounts/:account_identifier/firewall/access_rules/rules/:identifier
// DeleteAccessRule remove an access rule so it is no longer evaluated during // requests . This will apply to all zones owned by the account . // DELETE accounts / : account_identifier / firewall / access_rules / rules / : identifier
func DeleteAccessRule(account string, id string) bool {
	req, err := http.NewRequest("DELETE", url+"accounts/"+account+"/firewall/access_rules/rules/"+id, nil)
	if err != nil {
		log.Println(err)
	}
	req.Header.Add("Authorization", "Bearer "+token)
	client := &http.Client{}
	resp, err := client.Do(req)
	if err != nil {
		log.Println(err)
	}
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		log.Println(err)
	}
	var ar = &AccessRuleResponse{}
	err = json.Unmarshal(body, &ar)
	return ar.Success
}
func DeleteAccessRule ( account string , id string ) bool { req , err := http . NewRequest ( " " , url + " " + account + " " + id , nil ) if err != nil { log . Println ( err ) } req . Header . Add ( " " , " " + token ) client := & http . Client { } resp , err := client . Do ( req ) if err != nil { log . Println ( err ) } body , err := ioutil . ReadAll ( resp . Body ) if err != nil { log . Println ( err ) } var ar = & AccessRuleResponse { } err = json . Unmarshal ( body , & ar ) return ar . Success }
DeleteAccessRule remove an access rule so it is no longer evaluated during
requests.
DeleteAccessRule remove an access rule so it is no longer evaluated during requests .