Cloudflare\Zone\Firewall\AccessRules::delete_rule PHP Метод

delete_rule() публичный Метод

Optionally, specify how to delete rules that match the mode and configuration across all other zones that this zone owner manages. 'none' is the default, and will only delete this rule. 'basic' will delete rules that match the same mode and configuration. 'aggressive' will delete rules that match the same configuration.
public delete_rule ( string $zone_id, string $identifier, string | null $cascade = null )
$zone_id string
$identifier string
$cascade string | null The level to attempt to delete rules defined on other zones that are similar to this rule
    public function delete_rule($zone_id, $identifier, $cascade = null)
    {
        $data = ['cascade' => $cascade];
        return $this->delete('/zones/' . $zone_id . '/firewall/access_rules/rules/' . $identifier, $data);
    }