Deleting something spams script editor hundreds of times?

Hi, simple but weird issue::

I have a system that creates and destroys COMP’s with custom parameters. It does so by copying a template COMP into another container, sometimes nesting it in other similar comps. This works fine.

When I delete these by hand in the network, also totally fine!

However I have a delete button in my UI, which deletes whatever is selected (listed in dat), and even when I delete the custom params first, then the objects, and in order from deepest to shallowest… I get hundreds, sometimes thousands of clones of the same message show up in the script editor. No error in the network though.

Any ideas?
( UUID and Name are two of my custom params, there are others but only these two seem to ever get printed like this )

AttributeError: 'td.ParCollection' object has no attribute 'Uuid' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Name' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Name' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Uuid' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Uuid' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Name' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Name' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Uuid' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Uuid' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Name' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Name' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Uuid' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Uuid' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Name' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Name' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Uuid' Traceback (most recent call last): File "", line 1, in <module> AttributeError: 'td.ParCollection' object has no attribute 'Uuid' Traceback (most recent call last):

Well, found a fix for this, not quite a hack but not the most elegant either.

If I go through all the nodes and delete the custom pars on each one first… then go back through after and delete them in order of deep to shallow (although this probably wouldn’t matter now) it nixes them without errors.

can you share a trimmed down example? It feels like the Uuid and Name parameters are referenced somehow?
Does the delete script do anything special or literally just destroy the op?

Best
Markus