How to remove displayObject completely?

code:

local tile = display.newImage("my\_image.png") print(tile) tile.parent:remove(tile) print(tile)

I think the displayObject “tile” is not really removed.
How can I remove the displayObject completely ?
[import]uid: 5376 topic_id: 686 reply_id: 300686[/import]

tile = nil

That should set it up for garbage collection, I think… [import]uid: 5708 topic_id: 686 reply_id: 1372[/import]

set object to nil or null

I have try it before, because it works for Flash Lite/ Flash , but not Corona. :frowning:

It will got runtime error message in Corona terminal.

[import]uid: 5376 topic_id: 686 reply_id: 1374[/import]

once you set it to nil, don’t reference it anymore.
meaning, don’t do

print(tile)
C [import]uid: 24 topic_id: 686 reply_id: 1378[/import]

Thanks [import]uid: 5376 topic_id: 686 reply_id: 1385[/import]