Copy the tree (that you want to have) to another NEW file.
BTW. @pcanal If I remember well … when “freeing” space in a ROOT file, in the case of a TTree, one additionally needed to manually “release” the space used by “data baskets” … I think I found the old thread with some hints → “File size with a CloneTree”