# How do I get widgets to garbage collect?

**URL:** <https://forums.unrealengine.com/t/how-do-i-get-widgets-to-garbage-collect/419486>\
**Category:** UI\
**Tags:** garbage-collection, unreal-engine, Widget, Blueprint, question\
**Created:** [March 10, 2018, 7:55pm UTC](https://forums.unrealengine.com/t/how-do-i-get-widgets-to-garbage-collect/419486 "2018-03-10T19:55:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Stoddard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@James\_Stoddard](https://forums.unrealengine.com/u/James_Stoddard)\
**Post date:** [March 10, 2018, 7:55pm UTC](https://forums.unrealengine.com/t/how-do-i-get-widgets-to-garbage-collect/419486/1 "2018-03-10T19:55:39Z")

</div>

issue UE-51408 states that blueprint widget references will be dropped if the create widget node is wrapped in a function. This has not been my experience in 4.18. I have a blueprint hud and event widgets created in functions are not garbage collected.
