def delete(self, licenseName):
        data = self.getBodyAsJSON()
        try:
            rns = data['rns']
        except __HOLE__:
            raise Http404("Missing entry : 'rns'")
        else:
            rnsList = rns.split(",")
            for rnName in rnsList:
                if rnName in self.dispatcher.dispatchTree.renderNodes:
                    rn = self.dispatcher.dispatchTree.renderNodes[rnName]
                else:
                    raise Http500("Internal Server Error: Render node %s is not registered." % (rnName))

                self.dispatcher.licenseManager.releaseLicenseForRenderNode(licenseName, rn)
            self.writeCallback("OK")
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/octopus/dispatcher/webservice/licenses.py/LicenseResource.delete