'Destroy the targeted resource group'

def destroy_resource_group(self):

    try:
        result = self.rm_client.resource_groups.delete(self.resource_group_name)
        result.wait()
    except CloudError as e:
        if ((e.status_code == 404) or (e.status_code == 204)):
            return
        else:
            self.fail(('Delete    resource    group    and    deploy    failed    with    status    code:    %s    and    message:    %s' % (e.status_code, e.message)))
