In a python script I load a dataset into a environment variable which uses up almost all system memory.
Lets say I did something with that data and I am ready to dismiss it and load another dataset of similar size.
Now because of Pythons internal garbage collector and references system to a variable, it is not trivial to remove this variable from the environment and thus release the memory to be able to load a new variable.
What is the best way of doing this?