Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Delete files from system.DocumentsDirectory while uninstalling
Started by mullickprodip Feb 18 2018 03:06 AM

2 replies to this topic
documentsdirectory
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mullickprodip

[GLOBAL: userInfoPane.html]
mullickprodip
  • Observer

  • 2 posts
  • Corona SDK

I want to delete a file from system's DocumentsDirectory automatically while the app will be uninstalled. I got the lfs and os.remove to remove the file. But how to trigger that during uninstallation ?



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,617 posts
  • Corona SDK

I didn't think you needed to.  AFAIK removing the app also removes the contents in documents.



[TOPIC: post.html]
#3

SGS

[GLOBAL: userInfoPane.html]
SGS
  • Corona Geek

  • 2,137 posts
  • Corona SDK

All sandboxed data (for your app) is removed when you uninstall.




[topic_controls]
[/topic_controls]