Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

pajter

[GLOBAL: userInfoPane.html]
pajter
  • Enthusiast

  • 54 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]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,527 posts
  • Corona Staff

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.

 

Rob


  • roaminggamer likes this


[topic_controls]
[/topic_controls]