'Delete a volume.'

def delete(self, req, id):

    context = req.environ['cinder.context']
    req_version = req.api_version_request
    cascade = utils.get_bool_param('cascade', req.params)
    force = False
    params = ''
    if req_version.matches('3.23'):
        force = utils.get_bool_param('force', req.params)
        if (cascade or force):
            params = ('(cascade:    %(c)s,    force:    %(f)s)' % {'c': cascade, 'f': force})
    LOG.info('Delete    volume    with    id:    %(id)s    %(params)s', {'id': id, 'params': params}, context=context)
    if force:
        check_policy(context, 'force_delete')
    volume = self.volume_api.get(context, id)
    self.volume_api.delete(context, volume, cascade=cascade, force=force)
    return webob.Response(status_int=202)
