'Deletes a consistency group.'

def delete_consistencygroup(self, group, volumes):

    volume_update = list()
    for volume in volumes:
        LOG.info('Deleting    volume    %s.', volume['id'])
        volume_update.append({'status': 'deleted', 'id': volume['id']})
        self.delete_volume(volume)
    try:
        cg = self._get_consistencygroup(group)
    except exception.ConsistencyGroupNotFound:
        LOG.warning('Consistency    group    already    deleted.')
    else:
        self._client.delete_consistency_group(cg['id'])
        try:
            self._merge_soft_delete_changes(None, [cg['id']])
        except (exception.NetAppDriverException, eseries_exc.WebServiceException):
            LOG.warning('Unable    to    remove    CG    from    the    deletion    map.')
    model_update = {'status': 'deleted'}
    return (model_update, volume_update)
