Deleting iCloud Documents and Data simply deletes any documents and CORE data. It does not delete anything in NSUbiquitousKeyValueStore. I expected him to remove ALL about the application.
Before adding iCloud support, I used NSUserDefaults to store small pieces of data for the application. For example, the end user can enter their name and address, and I would save this in NSUserDefaults. This is not complex data, and I do not need to use the main data or a flat file to store it. It is very easy to store there, and it works. If I remove the application from the phone, this information will disappear, as I expected. When I added iCloud support, I put it in NSUbiquitousKeyValueStore. However, even if I delete the application and then delete the “documents and data”, the name and address of the end user will be STILL there.
I thought I was doing something wrong. After most of the day's research, I found that iCloud keyword storage should be for “discrete” data and that “iCloud key value data storage is not what the user will see.”
Thus, although it is perfectly capable of storing non-complex user data that the end user actually sees, it is not intended to be used. What I am doing "wrong" uses it for misuse, although it works well for that use.
I am not sure why Apple will not remove ALL from iCloud. Or at least give the user an opportunity.
source share