can somebody eloborate on this. What is the diff?
removeChild gives control to the parent for removing its children nodes.
detach gives control over the node to remove itself from its parent.
I am guessing choosing one over the other depends on your application.