How can I remove all widgets except one?

Hi, Im doing a videogame, and I want to know how can i remove all widgets from the viewport, except one, the HUD of the player. I can’t use remove all widgets because the HUD disappears too.
Thanks.

Hi, did you ever get to the bottom this? thanks

Remove All and then show HUD. Or get all, iterate and don’t hide HUD.