"Clear values" from script

Hi all,
How can I get the “Clear values” from script?

When I set a referenced brep and then I delete it, the list length is still = 1

I would get this result:

Clear Values.gh (8.7 KB)

the referenced geometry is stored in the PersistentData property
clear that and schedule a recompute to see effects downstream

example_willwang.gh (9.4 KB)

1 Like