How remove widget from view port?

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”