'Deletes a group.'

def delete_group(self, context, group, volumes):

    try:
        if (not volume_utils.is_group_a_cg_snapshot_type(group)):
            raise NotImplementedError()
        cg_name = self._get_3par_vvs_name(group.id)
        self.client.deleteVolumeSet(cg_name)
    except hpeexceptions.HTTPNotFound:
        LOG.warning("Virtual    Volume    Set    '%s'    doesn't    exist    on    array.", cg_name)
    except hpeexceptions.HTTPConflict as e:
        LOG.error('Conflict    detected    in    Virtual    Volume    Set    %(volume_set)s:    %(error)s', {'volume_set': cg_name, 'error': e})
    volume_model_updates = []
    for volume in volumes:
        volume_update = {'id': volume.id}
        try:
            self.delete_volume(volume)
            volume_update['status'] = 'deleted'
        except Exception as ex:
            LOG.error('There    was    an    error    deleting    volume    %(id)s:    %(error)s.', {'id': volume.id, 'error': ex})
            volume_update['status'] = 'error'
        volume_model_updates.append(volume_update)
    model_update = {'status': group.status}
    return (model_update, volume_model_updates)
