Remove doc from the tree.