The variable name is basically a pointer. It takes almost no memory, you could have a million variables, I think, without any problem. The issue would be the data that is stored in the variable, which you can delete using clear (on lists) or even just setting the variable to "null". Which will orphan the data and the garbage collector will reclaim the memory (after a short period of time).