WidgetKit.getCurrentConfigurations returning widget info even after uninstalling widget

i am able to get the widget info using getCurrentConfigurations if the widget was installed.
However, when i uninstall the widget, i still get the widget info in the response to above method.

How can i check if the widget was uninstalled?
WidgetKit.getCurrentConfigurations returning widget info even after uninstalling widget
 
 
Q