How remove widget from view port?

Hi! So the main question is how to remove one widget from viewport and replace it with another one? I’ve made the game main menu. It has play button and settings button. In settings submenu i’ve made another two buttons, which represent different languages of the game HUD(eng/rus). In this menu i want to change the language, but the widget is being created on the top of the existing one. How to determine that widget has been already created and remove it first before the creation of new one? I was trying to remove it using reference to widget(LangSelector blueprint)? but didn’t succeed. Thanks.

Try using “remove from parent” instead of “remove from viewport”

I did it in lang selector blueprint and it didn’t work.

i’m having same problem. promoting to variable and removing does not work for me so i’m using “get all widgets of class”, choosing widget then “remove from parent”

Thanks! That worked, however i had to download Victory plugin first, which adds this blueprint function. Thanks anyway!