# Remove or hide actor with widget component

**URL:** <https://forums.unrealengine.com/t/remove-or-hide-actor-with-widget-component/400428>\
**Category:** UI\
**Tags:** spawnactor, destroying-actors, unreal-engine, Widget, question, Blueprint\
**Created:** [July 20, 2017, 2:00pm UTC](https://forums.unrealengine.com/t/remove-or-hide-actor-with-widget-component/400428 "2017-07-20T14:00:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_266d07fa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_266d07fa](https://forums.unrealengine.com/u/anonymous_user_266d07fa)\
**Post date:** [July 20, 2017, 2:00pm UTC](https://forums.unrealengine.com/t/remove-or-hide-actor-with-widget-component/400428/1 "2017-07-20T14:00:10Z")

</div>

I’m using SpawnActor to create several widget actors, but when I try to use DestroyActor on them, nothing happens. Am I missing something? I have tried most methods that I could find online, I have tried putting them into an array, or giving them a new class, but nothing seems to remove them.

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [July 20, 2017, 4:01pm UTC](https://forums.unrealengine.com/t/remove-or-hide-actor-with-widget-component/400428/2 "2017-07-20T16:01:26Z")

</div>

Try using `Remove From Parent`.

There is also `Remove All Widgets` which will clear the HUD of widgets.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_266d07fa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_266d07fa](https://forums.unrealengine.com/u/anonymous_user_266d07fa)\
**Post date:** [July 20, 2017, 4:56pm UTC](https://forums.unrealengine.com/t/remove-or-hide-actor-with-widget-component/400428/3 "2017-07-20T16:56:26Z")

</div>

You mean `Remove All Widgets` ? I can’t find any node called Remove From Viewport

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [July 20, 2017, 9:09pm UTC](https://forums.unrealengine.com/t/remove-or-hide-actor-with-widget-component/400428/4 "2017-07-20T21:09:12Z")

</div>

Ah sorry, yes, that would remove all widgets from the viewport.

There is also `Remove From Parent` which is for any specific widget. I’ll update my answer accordingly.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_266d07fa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_266d07fa](https://forums.unrealengine.com/u/anonymous_user_266d07fa)\
**Post date:** [July 21, 2017, 1:17pm UTC](https://forums.unrealengine.com/t/remove-or-hide-actor-with-widget-component/400428/5 "2017-07-21T13:17:53Z")

</div>

I tried using that, no effect on the widgets.

---

<div class="post-metadata">

**Author:** ![bartvp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bartvp](https://forums.unrealengine.com/u/bartvp)\
**Post date:** [July 21, 2017, 1:25pm UTC](https://forums.unrealengine.com/t/remove-or-hide-actor-with-widget-component/400428/6 "2017-07-21T13:25:41Z")

</div>

Do you add the widgets via the level blueprint or the player blueprint? Don’t know it makes a difference but I’d at least try it

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [July 21, 2017, 4:12pm UTC](https://forums.unrealengine.com/t/remove-or-hide-actor-with-widget-component/400428/7 "2017-07-21T16:12:31Z")

</div>

Can you show the code you’re using to spawn and destroy these Actors
