Remove Empty List Preserving Hierarchy

Try List.Clean with the boolean set to true:
http://dictionary.dynamobim.com/#/Core/List/Action/Clean
See also:

I can’t find any illustration for List.Clean with boolean set to true. Please send a screenshot if you used it successfully so we can reuse it as a reference for similar issues.