'Deletes an existing qos specs.'

def delete(self, req, id):

    context = req.environ['cinder.context']
    authorize_delete(context)
    force = utils.get_bool_param('force', req.params)
    LOG.debug('Delete    qos_spec:    %(id)s,    force:    %(force)s', {'id': id, 'force': force})
    try:
        qos_specs.delete(context, id, force)
        notifier_info = dict(id=id)
        rpc.get_notifier('QoSSpecs').info(context, 'qos_specs.delete', notifier_info)
    except exception.QoSSpecsNotFound as err:
        notifier_err = dict(id=id, error_message=err)
        self._notify_qos_specs_error(context, 'qos_specs.delete', notifier_err)
        raise
    except exception.QoSSpecsInUse as err:
        notifier_err = dict(id=id, error_message=err)
        self._notify_qos_specs_error(context, 'qos_specs.delete', notifier_err)
        if force:
            msg = _('Failed    to    disassociate    qos    specs.')
            raise webob.exc.HTTPInternalServerError(explanation=msg)
        msg = _('Qos    specs    still    in    use.')
        raise webob.exc.HTTPBadRequest(explanation=msg)
    return webob.Response(status_int=http_client.ACCEPTED)
