how to remove files from aplication?

How can I remove files from my aplication?

I will download a fill images and for not overloading my aplication
I need to delet this images

anyone can tells me how do I do that? [import]uid: 23063 topic_id: 16180 reply_id: 316180[/import]

Hi Dhennrich!

You can store them in system.TemporaryDirectory or use the os.remove function. [import]uid: 38658 topic_id: 16180 reply_id: 60238[/import]

so when I close the app this files will be removed?

thanks :] [import]uid: 23063 topic_id: 16180 reply_id: 60260[/import]

so when I close the app this files will be removed?

thanks :] [import]uid: 23063 topic_id: 16180 reply_id: 60261[/import]

Yes, everything that is stored in system.TemporaryDirectory will be removed once your app is closed :slight_smile:

To test this, open up a project in the simulator. Go to File > Show Project Sandbox , then save a file to the system.TemporaryDirectory. You should then see a Tmp directory was created, with your file there!

When you close the simulator ( Cmd + W ), you should see that folder was deleted. [import]uid: 52430 topic_id: 16180 reply_id: 60263[/import]

oh thanks

now I know where the files go when I create them ^^

well thanks for support, both of you ^^ [import]uid: 23063 topic_id: 16180 reply_id: 60266[/import]

Hi Jonathan,

Thank you for the info about the “Showing Sandbox File”!
I promise you I did not know about that and now I am able to see the temp recorded files when testing my chunks via simulator. :slight_smile:

Regards, [import]uid: 89165 topic_id: 16180 reply_id: 60293[/import]