'Delete an Affinity Group
:param affinity_group: Instance of affinity group
:type  affinity_group: :class:`CloudStackAffinityGroup`
:rtype ``bool``'

def ex_delete_affinity_group(self, affinity_group):

    return self._async_request(command='deleteAffinityGroup', params={'id': affinity_group.id}, method='GET')['success']
