That can be done with an script i think:- get an array-list of all sub-folders

For Each folder in Array - go to each deepest sub-folder While parent != folder1 - IF (my-parent-folder IS without files) THEN move this-folder-and-all-subfolder one hierarchy up - go to parent LoopNext