def delete(self, get_parent=False):
        "Delete this node (optionally, return parent)."
        if self.__tree.exists(self.__node):
            parent = self.parent if get_parent else None
            self.__tree.delete(self.__node)
            return parent
        assert not get_parent, 'Cannot return parent!'
Delete this node (optionally, return parent).
recipes/Python/577632_Directory_Pruner_1/recipe-577632.py