I am using two photo files in display.newImage and want to delete after that but whatever I do doesn’t seem to close the files so I can delete them. I have to assign both to p and delete both after using.
p= display. newImage (“1.png”,system.DocumentsDirectory)
p= display. newImage (“2.png”,system.DocumentsDirectory)
p:removeSelf()
p = nil
f1 = (“1.png”,system.DocumentsDirectory)
f2 = (“2.png”,system.DocumentsDirectory)
os.remove(f1)
os.remove (f2)
