'Delete a consistency group.'

def delete(self, req, id, body):

    LOG.debug('delete    called    for    member    %s', id)
    context = req.environ['cinder.context']
    force = False
    if body:
        if (not self.is_valid_body(body, 'consistencygroup')):
            msg = _("Missing    required    element    'consistencygroup'    in    request    body.")
            raise exc.HTTPBadRequest(explanation=msg)
        cg_body = body['consistencygroup']
        try:
            force = strutils.bool_from_string(cg_body.get('force', False), strict=True)
        except ValueError:
            msg = (_("Invalid    value    '%s'    for    force.") % force)
            raise exc.HTTPBadRequest(explanation=msg)
    LOG.info('Delete    consistency    group    with    id:    %s', id)
    try:
        group = self._get(context, id)
        consistencygroup_api.check_policy(context, 'delete')
        self.group_api.delete(context, group, force)
    except exception.InvalidConsistencyGroup as error:
        raise exc.HTTPBadRequest(explanation=error.msg)
    return webob.Response(status_int=http_client.ACCEPTED)
