'Delete the scaling group.
Since Auto Scale doesn\'t allow deleting a group until all its servers
are gone, we must set the minEntities and maxEntities of the group to 0
and then keep trying the delete until Auto Scale has deleted all the
servers and the delete will succeed.'

def handle_delete(self):

    if (self.resource_id is None):
        return
    asclient = self.auto_scale()
    args = self._get_group_config_args(self.properties[self.GROUP_CONFIGURATION])
    args['min_entities'] = 0
    args['max_entities'] = 0
    try:
        asclient.replace(self.resource_id, **args)
    except NotFound:
        pass
