# Deleting Subobject From Actor Using Scripted Actions

**URL:** <https://forums.unrealengine.com/t/deleting-subobject-from-actor-using-scripted-actions/597766>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [July 5, 2022, 5:53pm UTC](https://forums.unrealengine.com/t/deleting-subobject-from-actor-using-scripted-actions/597766 "2022-07-05T17:53:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![quartz3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@quartz3d](https://forums.unrealengine.com/u/quartz3d)\
**Post date:** [July 5, 2022, 5:53pm UTC](https://forums.unrealengine.com/t/deleting-subobject-from-actor-using-scripted-actions/597766/1 "2022-07-05T17:53:27Z")

</div>

I’m attempting to utilize an editor utility blueprint to batch add and remove components from actors in a level using scripted actions and the subobject data subsystem ([Subobject Data Subsystem | Unreal Engine Documentation](https://docs.unrealengine.com/5.0/en-US/BlueprintAPI/SubobjectDataSubsystem/)). I’ve been able to get it so that components can be added to selected actors, but I’m having trouble removing components. Is anyone familiar with the proper way to do this using scripted events?

---

<div class="post-metadata">

**Author:** ![Sephirothx\_x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sephirothx\_x](https://forums.unrealengine.com/u/Sephirothx_x)\
**Post date:** [January 17, 2023, 5:45pm UTC](https://forums.unrealengine.com/t/deleting-subobject-from-actor-using-scripted-actions/597766/2 "2023-01-17T17:45:31Z")

</div>

If anyone is stuck like me I figured it out  
I just iterate over the object and cast to the type of component I’m looking for to delete it

---

<div class="post-metadata">

**Author:** ![Sephirothx\_x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sephirothx\_x](https://forums.unrealengine.com/u/Sephirothx_x)\
**Post date:** [January 17, 2023, 6:08pm UTC](https://forums.unrealengine.com/t/deleting-subobject-from-actor-using-scripted-actions/597766/3 "2023-01-17T18:08:43Z")

</div>

Did you find any solution? Like you I managed to add the components from the script but I cannot figure how to remove them from the script .

---

<div class="post-metadata">

**Author:** ![Supremative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/supremative/32/906564_2.png) [@Supremative](https://forums.unrealengine.com/u/Supremative)\
**Post date:** [January 17, 2023, 6:45pm UTC](https://forums.unrealengine.com/t/deleting-subobject-from-actor-using-scripted-actions/597766/4 "2023-01-17T18:45:44Z")

</div>

I delete components in the following way:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/1/0d12d81796ad063fe5cdf005151d27165443c759.png)

However, you will not be able to delete components in an instance if they were defined in a class. I’m checking this with CanReparent because it seems CanDelete is broken.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/5/e458bceb1b158886e61c64127b9811c633c2a0b6.png)

[My Products](https://www.unrealengine.com/marketplace/en-US/profile/Aleksandr+Sidorov)

---

<div class="post-metadata">

**Author:** ![FaxLab3D](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/faxlab3d/32/1113136_2.png) [@FaxLab3D](https://forums.unrealengine.com/u/FaxLab3D)\
**Post date:** [March 12, 2025, 7:17am UTC](https://forums.unrealengine.com/t/deleting-subobject-from-actor-using-scripted-actions/597766/5 "2025-03-12T07:17:50Z")

</div>

Please show where blue noodles go

---

<div class="post-metadata">

**Author:** ![PDubulous](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pdubulous/32/1194655_2.png) [@PDubulous](https://forums.unrealengine.com/u/PDubulous)\
**Post date:** [April 2, 2025, 9:29pm UTC](https://forums.unrealengine.com/t/deleting-subobject-from-actor-using-scripted-actions/597766/6 "2025-04-02T21:29:55Z")

</div>

This works in 5.3

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/c/19c858641ac25cd8d0ab4e96d0ba4b99be9920d3.jpeg)

[Editor Utility for adding an Actor Component to an Actor posted by PDubulous | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/x60_fjrp/)
