anytree icon indicating copy to clipboard operation
anytree copied to clipboard

Delete or remove a node

Open fs-srogers opened this issue 3 years ago • 1 comments

I'm not sure if I missed it in the Doc or not. But I'd like to be able to delete a node.

fs-srogers avatar Jan 26 '22 20:01 fs-srogers

Nodes are removed from the tree by setting the parent to None. This will not delete the node but make it the root so afterwards you have two trees. See in the docs.

jkbgbr avatar Jun 28 '22 03:06 jkbgbr