How to release memory in grasshopper Python

Hi.

I create my own class in gh python. And I intilized a few instances.
For printing them I can see they are stored somewhere.
When I recompute, I see they are stored somewhere else, so I realize that the previous instances are still occupying the memory. They are not deleted automatically.
Is there anyone knows how to release memory?

Thanks for your help.

GH’s IronPython runs on .NET CLR, which collects memory automatically. Don’t manually do that unless (1) the class uses unmanaged resources, or (2) you have a very good reason doing so.

hi. thanks for your answering