# How to destroy UMG widget?

**URL:** <https://forums.unrealengine.com/t/how-to-destroy-umg-widget/18612>\
**Category:** UI\
**Tags:** unreal-engine\
**Created:** [January 10, 2015, 3:56am UTC](https://forums.unrealengine.com/t/how-to-destroy-umg-widget/18612 "2015-01-10T03:56:53Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Pumpy\_Bird](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pumpy\_Bird](https://forums.unrealengine.com/u/Pumpy_Bird)\
**Post date:** [August 22, 2015, 12:37am UTC](https://forums.unrealengine.com/t/how-to-destroy-umg-widget/18612/10 "2015-08-22T00:37:24Z")

</div>

Memory leaks are much more likely without garbage collection, as you have to manually destroy everything.

Hopefully this will shed some light on the memory management in ue4.

> **[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...

It is possible to manually initiate garbage collection for a specific uobject if that’s what you would like. (This requires C++ however I believe)

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-destroy-umg-widget/18612)._
