Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

remove file from DocumentsDirectory when uninstalling?
Started by pajter May 29 2018 08:47 PM

1 reply to this topic
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Enthusiast

  • 57 posts
  • Corona SDK

Or how to detect that app was just reintalled?

I'm uninstalling app and file with latest state of game still exists in DocumentsDirectory. :( 


Documentation says about system.DocumentsDirectory: 



This directory is intended for files that the app cannot regenerate on its own, for example user-specific data, "app state" data, or anything that the app generates post-installation. Files in this directory will persist for the lifetime of the app — that is, until the app is explicitly removed from the device.


[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,253 posts
  • Enterprise

If you remove the app, it should clear system.DocumentsDirectory. If you have multiple users setup (assuming this is for Android), then you may have to remove the app for all users to completely get rid of it.