I have a large dataset that I am dealing with in Python. It is hierarchical just like DOM. I have a root node object, and from that object all the other objects emanate.
SO, if I just do del obj where obj is root node, will the entire hierarchy be gone immediately?
“Immediately”, no. The garbage collector will sweep it up next run, assuming there are no other references to that object.