# \[UMG\] Remove Children?

**URL:** <https://forums.unrealengine.com/t/umg-remove-children/297180>\
**Category:** UI\
**Tags:** open-level, unreal-engine, crash, question, UMG\
**Created:** [October 25, 2014, 4:59am UTC](https://forums.unrealengine.com/t/umg-remove-children/297180 "2014-10-25T04:59:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tearl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tearl](https://forums.unrealengine.com/u/Tearl)\
**Post date:** [October 25, 2014, 4:59am UTC](https://forums.unrealengine.com/t/umg-remove-children/297180/1 "2014-10-25T04:59:37Z")

</div>

I’m in 4.4.3  
I know about the open level crash if you don’t remove the UMG widget. thing is, I can’t get it to remove for the life of me. I used Rama’s tutorial that creates a bunch of Child widget buttons for level selection. I tried Get Parent and remove child and remove from viewport. Thing is, is it trying to just remove that one child? I have 5 in my test menu. How do I completely remove all widgets before opening my level? Am I trying to get parent on the wrong widget? I’m getting it on my button widget, which is one of several children on my main scroll box widget.  
it looks like everything else works…the is my last hurdle for getting my game going…well the test game anyway.

By the way, all widgets are added from my HUD class. Not sure if that makes any difference on trying to remove them all before opening a level.  
Hints?

---

<div class="post-metadata">

**Author:** ![Tearl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tearl](https://forums.unrealengine.com/u/Tearl)\
**Post date:** [October 27, 2014, 5:44pm UTC](https://forums.unrealengine.com/t/umg-remove-children/297180/2 "2014-10-27T17:44:32Z")

</div>

Little update: I moved my project to 4.5.  
Still can’t figure out how to remove the widget with all the child widgets inside it. I can now load the levels from the menu, but not remove it.  
Anyone?

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 27, 2014, 11:55pm UTC](https://forums.unrealengine.com/t/umg-remove-children/297180/3 "2014-10-27T23:55:07Z")

</div>

#Solution

Dear Tearl,

I have actually implemented my tutorial of adding child widgets in my In-game UMG Steam Friends List,

**Wiki Link**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

and here is how I handle removing child widgets!

 ![19245-umgclearchildren.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/b/15b35a81198c3e4a3d7842f906ef11b7194b8379.jpeg)

---

<div class="post-metadata">

**Author:** ![Tearl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tearl](https://forums.unrealengine.com/u/Tearl)\
**Post date:** [October 28, 2014, 1:05am UTC](https://forums.unrealengine.com/t/umg-remove-children/297180/4 "2014-10-28T01:05:36Z")

</div>

Thanks Rama! However, it did not work for me. I hooked a Print String to my IsValid…turns out, it’s not seeing the Widget as Valid. I’m not sure why.  
So, maybe is the location of my function? Should I put this function on the child widget or (currently) in my HUD BP?

Come to think of it, my timer doesn’t get removed either (also called from the HUD BP). Can I not get a valid connection to a Widget class from the HUD class?

---

<div class="post-metadata">

**Author:** ![Tearl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tearl](https://forums.unrealengine.com/u/Tearl)\
**Post date:** [October 28, 2014, 3:07am UTC](https://forums.unrealengine.com/t/umg-remove-children/297180/5 "2014-10-28T03:07:32Z")

</div>

Rama! I got it! So, I sat and wondered WHY does your setup work and mine does not? Well, maybe this is a BUG…but I had set up my variables pointing to my widgets by just adding with the +V and selecting the widget name in the list. THIS DID NOT WORK. Instead, I used the “promote to variable” from my create widget…and THAT worked! Not sure why it works that way…is that a bug? Anyway, THANK YOU RAMA! Again, you are my hero!
