11

I'm wondering if there is a way someone other than I (the developer) can delete values stored in NSUbiquitousKeyValueStore.

Documentation states that an app is given 1MB/1024 Key Value pairs. It does not mention if a user is able to delete them via settings, deleting the app, or through any other means.

Is this a safe assumption?

Erik Kerber
  • 5,646
  • 7
  • 38
  • 56

1 Answers1

1

You are correct in that the end user cannot delete the iCloud KVS data. What's shown in the settings comes from document based/coredata storage, and of course there is iCloud drive as well.

The only way they can nuke it is if you allow them to do so via your application (i.e. pressing a button that executes code to kill a entry in the dictionary).

Dreaming In Binary
  • 1,197
  • 6
  • 8
  • Do you have any evidence from Apple to back up what you describe? – Richard Dec 13 '16 at 16:21
  • 1
    So does the iCloud KVS data then just pile up forever, even for apps that are never used anymore? It seems strange that there isn't a mechanism somewhere to do this, but I can't find it either. – Jim Leask Feb 15 '17 at 18:33
  • For future readers: [iCloudFundamentals](https://developer.apple.com/library/archive/documentation/General/Conceptual/iCloudDesignGuide/Chapters/iCloudFundametals.html) – Laffen May 24 '19 at 12:10