/**
* 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.
*/
UFUNCTION(BlueprintCallable, Category=“Widget”)
virtual void RemoveFromParent();
The documentation states clearly that it will be removed from the player’s screen/viewport as well. When I tested it was removed as expected.