@staticmethod
    def delete_tenant_quota(context, tenant_id):
        with context.session.begin():
            tenant_quotas = context.session.query(quota_models.Quota)
            tenant_quotas = tenant_quotas.filter_by(tenant_id=tenant_id)
            if not tenant_quotas.delete():
                # No record deleted means the quota was not found
                raise n_exc.TenantQuotaNotFound(tenant_id=tenant_id)
Delete the quota entries for a given tenant_id.
dataset/ETHPy150Open openstack/neutron/neutron/db/quota/driver.py/DbQuotaDriver.delete_tenant_quota