I know there are several threads here about deleting terms with various techniques; I'm going to experiment deleting terms with drush at a certain level, say level three terms and below in the hierarchy. I was just curious if anyone here has any good ideas for this to inspire my work!
I'm pretty sure that can be done with the TermStorage class method loadAllParents, then determining which terms will be removed based on that count. I had forgotten about that method, loadParents would be much harder to use in this case, because we want to move all the way up the hierarchy.