The ChildNode.remove() method removes the object from the tree it belongs to.