/Engine/Source/Runtime/UMG/Public/Components/Widget.h
Removes the widget from its parent widget. If this widget was added to the player's screen or the viewport it will also be removed from those containers.
virtual void RemoveFromParent()