removing deleted files from the tree