the Reverend
the Reverend

Reputation: 12549

CloudKit: Zone was purged by the user

One of my users deleted their cloud data, and now they are getting a "Zone was purged by the user" message. I believe it is returning error CKErrorUserDeletedZone, when fetching the zone.

The documentation states the following:

  • The user deleted this zone through the settings UI. Your client should either remove its local data or prompt the user before attempting to re-upload any data to this zone. */

It is not clear whether I should delete the zone and create it again. Has anyone gone through this situation ?.

Upvotes: 4

Views: 1223

Answers (1)

Joel
Joel

Reputation: 861

The zone was already deleted, you should ask the user if he want to recreate the database (if is possible) or stop using CloudKit. If your app required CK, then you should ask the user to don't do it again.

Upvotes: 3

Related Questions