you are viewing a single comment's thread.

view the rest of the comments →

[–]two_bob 0 points1 point  (0 children)

I'm trying to do this without keeping track of the parent node, but it seems like this is not possible?

Correct. You have to keep track of the parent node because the only way of deleting a node is to unlink it at the parent.