Slate RemoveViewportWidgetContent

I am trying to remove a widget I drew in the viewport with the help off RemoveViewportWidgetContent but its not working.

I drew the slate widget on my screen using

Viewport->AddViewportWidgetContent(
	SNew(SWeakWidget).PossiblyNullContent(ToolTipUI.ToSharedRef())
	);

And I am trying to erase it with

Viewport->RemoveViewportWidgetContent(ToolTipUI.ToSharedRef());

But its not working.

try this

Viewport->AddViewportWidgetContent(ToolTipUI.ToSharedRef());

Viewport->RemoveViewportWidgetContent(ToolTipUI.ToSharedRef());