'Deletes a group snapshot.'

def delete_group_snapshot(self, context, group_snapshot, snapshots):

    if (not volume_utils.is_group_a_cg_snapshot_type(group_snapshot)):
        raise NotImplementedError()
    cgsnap_name = self._get_3par_snap_name(group_snapshot.id)
    snapshot_model_updates = []
    for (i, snapshot) in enumerate(snapshots):
        snapshot_update = {'id': snapshot['id']}
        try:
            snap_name = ((cgsnap_name + '-') + six.text_type(i))
            self.client.deleteVolume(snap_name)
            snapshot_update['status'] = fields.SnapshotStatus.DELETED
        except hpeexceptions.HTTPNotFound as ex:
            LOG.warning('Delete    Snapshot    id    not    found.    Removing    from    cinder:    %(id)s    Ex:    %(msg)s', {'id': snapshot['id'], 'msg': ex})
            snapshot_update['status'] = fields.SnapshotStatus.ERROR
        except Exception as ex:
            LOG.error('There    was    an    error    deleting    snapshot    %(id)s:    %(error)s.', {'id': snapshot['id'], 'error': six.text_type(ex)})
            snapshot_update['status'] = fields.SnapshotStatus.ERROR
        snapshot_model_updates.append(snapshot_update)
    model_update = {'status': fields.GroupSnapshotStatus.DELETED}
    return (model_update, snapshot_model_updates)
