

def ex_delete_firewall_rule(self, rule):
    '\n        Delete a firewall rule\n\n        :param rule: The rule to delete\n        :type  rule: :class:`DimensionDataFirewallRule`\n\n        :rtype: ``bool``\n        '
    update_node = ET.Element('deleteFirewallRule', {
        'xmlns': TYPES_URN,
    })
    update_node.set('id', rule.id)
    result = self.connection.request_with_orgId_api_2('network/deleteFirewallRule', method='POST', data=ET.tostring(update_node)).object
    response_code = findtext(result, 'responseCode', TYPES_URN)
    return (response_code in ['IN_PROGRESS', 'OK'])

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_delete_firewall_rule/original