Deleting instanced Geos from a Line SOP

Hello guys,
some weeks ago i posted a question on the facebook group, but no one could really help me.
Since I am still trying to solve this problem with no results, I try to post here as well. I hope I will be luckier!

I created a line Sop. Every point of this line is related to a Box.
Then I created a Sphere SOP and its x and y coordinates are mapped to the movement of the mouse.
When the sphere hits the base of one of the boxes, there is a positive trigger. (see attached .toe)

Now I would like that when the sphere hits the box, this box disappears.
However the other boxes should still keep the same position and order on the line.
When later the sphere hits another box, the same process (same position and order of the boxes) should occur and so until the end of the boxes.
Can anyone please help me with that?
Thanks!
sphere-boxes contact.toe (6.53 KB)

The boxes are being instanced onto the line, yeah? Do you have to delete the boxes, or could you just set the scale of them to 0?

ajk48n thanks for your reply.

I received already an advice about it, that helped me to solve this problem.
My approach was wrong. I didn’t have to delete the boxes.
I could have just scaled them to 0, as you suggest.

I have still a lot to learn about instancing, I guess :wink: