How to set the widget class to none in c++

I put a widget component on a pawn and set the widget class of the component to a widget BP in c++ but don’t know how to set it to none using another function. Tysm for the reply tho!