I use the following code to create an object and add it to the table with unique id.
players = {} local character = display.newSprite( myImageSheet , sequenceData ) id = crypto.digest( crypto.md5, system.getTimer() .. math.random() ) players[id] = character
Now how to safely remove it from display and table also???