'Delete Quota for a particular tenant.
This works for hierarchical and non-hierarchical projects. For
hierarchical projects only immediate parent admin or the
CLOUD admin are able to perform a delete.
:param req: request
:param id: target project id that needs to be deleted'

def delete(self, req, id):

    context = req.environ['cinder.context']
    authorize_delete(context)
    if QUOTAS.using_nested_quotas():
        self._delete_nested_quota(context, id)
    else:
        try:
            db.quota_destroy_by_project(context, id)
        except exception.AdminRequired:
            raise webob.exc.HTTPForbidden()
