locked
Removing temporaryFolder files when app closes

    Question

  • In my app, I have used the temporaryFolder of ApplicationData to successfully save entries put into the pages of my app. My question is how could I remove the files that are created in the temporaryFolder when the app closes so that when the app is ran again that data is not saved? I only want the data to be saved while the application is running.
    Tuesday, February 25, 2014 12:49 AM

Answers

  • Its funny. Every time I seem to have issues with something, I figure it out 10 minutes after posing the help thread. :)
    • Marked as answer by JYount Tuesday, February 25, 2014 1:01 AM
    Tuesday, February 25, 2014 1:01 AM

All replies

  • Its funny. Every time I seem to have issues with something, I figure it out 10 minutes after posing the help thread. :)
    • Marked as answer by JYount Tuesday, February 25, 2014 1:01 AM
    Tuesday, February 25, 2014 1:01 AM
  • A magic forum? Nice to hear.

    OK, The temporary app data store works like a cache. Its files do not roam and could be removed at any time. The System Maintenance task can automatically delete data stored at this location at any time. The user can also clear files from the temporary data store using Disk Cleanup. Temporary app data can be used for storing temporary information during an app session. There is no guarantee that this data will persist beyond the end of the app session as the system might reclaim the used space if needed. Location is available via temporaryFolder property.

    --James

    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, February 26, 2014 1:29 AM
    Moderator