remvong Runtime on multiple objects

Good Day how can I remove the runtime on all of my objects?

I used this style: https://coronalabs.com/blog/2015/08/25/tutorial-animation-with-enterframe-listeners/

here is my code: 

for i = 1, 10 do platform.newRect(0,0,20,320) function platform:enterFrame() self:translate( -4.0, 0 ) print("IS RUNNING") if self.x \<= -200 then Runtime:removeEventListener( "enterFrame", self ) end end Runtime:addEventListener( "enterFrame", platform ) end

after I move to another scene the runtime is still running. I can remove this if it is only one but, when I do this style I can’t remove it. Thanks in advance