

def ex_delete_anti_affinity_rule(self, anti_affinity_rule):
    '\n        Remove anti affinity rule\n\n        :param anti_affinity_rule: The anti affinity rule to delete\n        :type  anti_affinity_rule: :class:`DimensionDataAntiAffinityRule` or\n                                   ``str``\n\n        :rtype: ``bool``\n        '
    rule_id = self._anti_affinity_rule_to_anti_affinity_rule_id(anti_affinity_rule)
    result = self.connection.request_with_orgId_api_1(('antiAffinityRule/%s?delete' % rule_id), method='GET').object
    response_code = findtext(result, 'result', GENERAL_NS)
    return (response_code in ['IN_PROGRESS', 'SUCCESS'])

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