'Deletes an existing group spec.'

@wsgi.Controller.api_version('3.11')
def delete(self, req, group_type_id, id):

    context = req.environ['cinder.context']
    self._check_policy(context)
    self._check_type(context, group_type_id)
    try:
        db.group_type_specs_delete(context, group_type_id, id)
    except exception.GroupTypeSpecsNotFound as error:
        raise webob.exc.HTTPNotFound(explanation=error.msg)
    notifier_info = dict(type_id=group_type_id, id=id)
    notifier = rpc.get_notifier('groupTypeSpecs')
    notifier.info(context, 'group_type_specs.delete', notifier_info)
    return webob.Response(status_int=http_client.ACCEPTED)
