CloudKit creates a unique User record and adds to the Public database when a user launches your app for the first time. For debugging purposes, I'm trying to delete this such that CloudKit can generate a new unique ID that is different from the one before.
However when trying to delete said record using the CloudKit Dashboard, I get the following error:
invalid attempt to delete user records directly
I get the same error when trying to delete it in code using the deleteRecordWithID:
method.
Does anyone know the correct way of deleting a user record? Is it even possible? Are there any other solutions that will solve my problem by forcing a new record being created?
forceDelete
method once I have a chance. – AleksanderRecordBatchBuilder
norforceDelete
in the iOS SDK of CloudKit. – Aleksander