Clean Tree fails to clean empty elements

Why would clean tree block not remove these empty elements within a branch?

Also does not work when I put elements in their own branches:

I’m piecing together that ‘empty’ isn’t actually empty, it’s a string of text, but them I’m not able to target it with find/replace:

can you post a .gh file with internalised data please ?

1 Like

I’ve uploaded a stripped down version of my script and I’m reviewing the script/thread that Mahdiyar has linked to.

Thank you both! (6.3 KB)