'Delete a cgsnapshot.'

def delete(self, req, id):

    LOG.debug('delete    called    for    member    %s', id)
    context = req.environ['cinder.context']
    LOG.info('Delete    cgsnapshot    with    id:    %s', id)
    try:
        cgsnapshot = self._get_cgsnapshot(context, id)
        self.group_snapshot_api.delete_group_snapshot(context, cgsnapshot)
    except exception.GroupSnapshotNotFound:
        raise
    except exception.InvalidGroupSnapshot as e:
        raise exc.HTTPBadRequest(explanation=six.text_type(e))
    except Exception:
        msg = _('Failed    cgsnapshot')
        raise exc.HTTPBadRequest(explanation=msg)
    return webob.Response(status_int=http_client.ACCEPTED)
