Thank you all for your replies and answers. I noticed my sample wasn’t exact enough… so here is a corrected version. I was looking for information on how to remove properly when using a table like this…
local gfx={image1,image2} local myfunction = function() gfx.image1=display.newImage (...) gfx.image2=display.newImage (...) end for i=#gfx,1,-1 do display.remove( ??? ) end
I tried to remove with “display.remove (gfx[i])”, but of course this is not the right way to do it.
What do I have to use at “???”?
Regarding your sample above eja I have another question:
In your sample you are freeing the stored table images memory, but there is still the variables outside of the table (image1,image2) which also are needed to be removed, isn’t it?
I somehow didn’t get this right regarding removement…
When using an image like this:
local image1=display.newImageRect(...) local image2=display.newImageRect(...) local imgtable={image1,image2}
What exactly has to be removed to really free all of the memory? Is it enough to free the stuff in the table? I thought that is a reference and I also have to free the image1 and image2? Can someone please help me with this, so I can do this right in the future? 
Thx!