My app creates several JSON files that are updated with user data as the app is used. When I later submit an update to the app through the app store and the user downloads it, will that overwrite or delete the JSON files that have already been created on their device? [import]uid: 135391 topic_id: 26829 reply_id: 326829[/import]
No, your data files (in Documents directory) are not affected when the user updates the app. Only if the user removes the app will the data files be removed. [import]uid: 7559 topic_id: 26829 reply_id: 109251[/import]
@Tom, if I store files in system.DocumentsDirectory and have iCloud turned on and those files get saved to the iCloud backup, then I delete the app and re-install it, will it download the data files back from iCloud? Seems to me that’s the purpose of having a backup. On the other hand, it makes it hard to get rid of a corrupt file 
[import]uid: 19626 topic_id: 26829 reply_id: 109283[/import]
@Rob, we don’t know the answer to what Apple would do with your data files since that is beyond our control. We recently added an API to specify which files you don’t want backed up so you can control that.
If you want to give the user the ability to reset the app, you can provide a menu option for the user to remove the unwanted files from the Documents directory. [import]uid: 7559 topic_id: 26829 reply_id: 109298[/import]