'Deletes specified keys in qos specs.'

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

    context = req.environ['cinder.context']
    authorize_delete(context)
    if (not (body and ('keys' in body) and isinstance(body.get('keys'), list))):
        raise webob.exc.HTTPBadRequest()
    keys = body['keys']
    LOG.debug('Delete_key    spec:    %(id)s,    keys:    %(keys)s', {'id': id, 'keys': keys})
    try:
        qos_specs.delete_keys(context, id, keys)
        notifier_info = dict(id=id)
        rpc.get_notifier('QoSSpecs').info(context, 'qos_specs.delete_keys', notifier_info)
    except exception.NotFound as err:
        notifier_err = dict(id=id, error_message=err)
        self._notify_qos_specs_error(context, 'qos_specs.delete_keys', notifier_err)
        raise
    return webob.Response(status_int=http_client.ACCEPTED)
