# Can't destroy Added Spline Mesh Component

**URL:** <https://forums.unrealengine.com/t/cant-destroy-added-spline-mesh-component/347546>\
**Category:** World Creation\
**Tags:** Destroy, splinemeshcomponent, unreal-engine, Blueprint, question\
**Created:** [February 15, 2016, 3:38pm UTC](https://forums.unrealengine.com/t/cant-destroy-added-spline-mesh-component/347546 "2016-02-15T15:38:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidora](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sidora/32/630566_2.png) [@sidora](https://forums.unrealengine.com/u/sidora)\
**Post date:** [February 15, 2016, 3:38pm UTC](https://forums.unrealengine.com/t/cant-destroy-added-spline-mesh-component/347546/1 "2016-02-15T15:38:23Z")

</div>

I am adding a Spline mesh Component at runtime in the Level Blueprint.  
I am trying to delete it after 2 seconds but it doesn’t seem to work.

(i create the mesh inside my spline BP, then attach it to the root scene).  
I am using the return value of "Add Mesh Component’’ as the reference target of the DestroyComponent.

 ![78638-splinemeshhdestroy.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/c/55cc6f084fe881d19ec8c311e1f8a6b10753cb4e.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ef23e124](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ef23e124](https://forums.unrealengine.com/u/anonymous_user_ef23e124)\
**Post date:** [February 15, 2016, 3:45pm UTC](https://forums.unrealengine.com/t/cant-destroy-added-spline-mesh-component/347546/2 "2016-02-15T15:45:10Z")

</div>

Give detaching the Splmc, from it’s parent, then doing a destroy, on the component. No guarantees, but that’s how I would first start.

---

<div class="post-metadata">

**Author:** ![sidora](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sidora/32/630566_2.png) [@sidora](https://forums.unrealengine.com/u/sidora)\
**Post date:** [February 15, 2016, 6:53pm UTC](https://forums.unrealengine.com/t/cant-destroy-added-spline-mesh-component/347546/3 "2016-02-15T18:53:28Z")

</div>

Detaching before Destroy didn’t fix the issue.

---

<div class="post-metadata">

**Author:** ![sidora](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sidora/32/630566_2.png) [@sidora](https://forums.unrealengine.com/u/sidora)\
**Post date:** [February 15, 2016, 7:51pm UTC](https://forums.unrealengine.com/t/cant-destroy-added-spline-mesh-component/347546/4 "2016-02-15T19:51:40Z")

</div>

Ok i figured it out.  
I needed to make a custom event and a placeholder Variable(Spline Mesh Type) inside the target blueprint.  
Then, in the level BP, set the mesh to the variable, then call the event.

---

<div class="post-metadata">

**Author:** ![BarryR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/barryr/32/1093485_2.png) [@BarryR](https://forums.unrealengine.com/u/BarryR)\
**Post date:** [June 25, 2022, 10:06am UTC](https://forums.unrealengine.com/t/cant-destroy-added-spline-mesh-component/347546/5 "2022-06-25T10:06:39Z")

</div>

I had a similar problem, for me I just use set static mesh node to set spline mesh to empty and it could be destroied.  
This stuck me for about a week! Sharing with you guys.
