I am thinking to use iCloud kit in my app. I made some tests and it looks great. Straightforward and easy to implement. I will use private databases in order to not exceed the public database quota.
However, if the user deletes my app I need to offer a clean way to delete all the records associated. Something like when we use Ubiquitous containers (Settings -> iCloud -> Storage -> Manage storage -> Documents & Data).
Do you guys know if it is possible to do that CloudKit? Otherwise I need rethink its usage because this is an important detail.
Thanks
No, it's not possible to do cleanup like this upon a delete of an app. As MendelK mentions, no code is run on app deltion. But beyond that, how would you know whether the user has a another device or not? What if they do an erase of their device? The app is no longer on their device, but they didn't explicitly delete it. What if they get a new device, set that one up, and now want to delete the app off the second device?