def delete(self, poolName):
        try:
            # remove reference of the pool from all rendernodes
            for rn in self.getDispatchTree().renderNodes.values():
                if self.getDispatchTree().pools[poolName] in rn.pools:
                    rn.pools.remove(self.getDispatchTree().pools[poolName])
            # try to remove the pool from the dispatch tree
            self.getDispatchTree().pools[poolName].archive()
        except __HOLE__, e:
            logger.warning("No such pool: %r" % e)
            raise Http404('No such pool')
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/octopus/dispatcher/webservice/pools.py/PoolResource.delete