Remove DockWidgetPluginGui Cached Data

I’m making a plugin where I’m creating multiple one use DockWidgetPluginGuis and my concern is that I would be leaking memory if I don’t find a way to remove data associated with un used ids. If anyone has a good way of doing this be sure to let me know!