Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm using very big memory layers:
Is there any way to empty (fast), destroy or clean a layer in memory from an script without exit from this script ?
Have you tried
These should remove the reference to the layer and call the layer destructor.
In your script you can use:
assuming that the name of memory layer is 'mem_layer'.
Required, but never shown