'Deletes a group.'

@cinder_utils.trace
def delete_group(self, context, group, volumes):

    if (not utils.is_group_a_cg_snapshot_type(group)):
        raise NotImplementedError()
    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)
