How to destroy meshes spawned on spline?

Hi guys

I generate spline on runtime and draw some meshes on spline just for debugging purpose. Now i trying to figure out how to delete them after some time.
Destroy component - destroy all meshes from start, so they dont even appear on screen. But if a adding little delay Destroy Component will delete only last mesh on spline.

Add them to an array as you create them, this will allow you to get their references back.

Can you, please, provide more information? I trying to make array that way, but that doesnt help.

Create a variable of type *Spline Mesh Component *and add newly created splines there:

Then, when you’re ready, *Get *a component by index and destroy it.