'Try the delete operation until it succeeds.'

def check_delete_complete(self, result):

    if (self.resource_id is None):
        return True
    try:
        self.auto_scale().delete(self.resource_id)
    except Forbidden:
        return False
    except NotFound:
        return True
    else:
        return True
