UbiquityStoreManager icon indicating copy to clipboard operation
UbiquityStoreManager copied to clipboard

deleteCloudContainerLocalOnly:YES Deletes All Devices

Open kdbdallas opened this issue 11 years ago • 4 comments
trafficstars

I ran [self.ubiquityStoreManager deleteCloudContainerLocalOnly:YES]; on my Mac app expecting to only delete the contents of that device, however instead it deleted the contents on all devices, just as if I had specified NO instead of YES

kdbdallas avatar Dec 05 '13 17:12 kdbdallas

Can you provide USM logs of what happens when you do this?

lhunath avatar Dec 06 '13 19:12 lhunath

Of course. I had a work Christmas party which included an overnight stay at a fancy hotel, so I had to run after finding this, and now trying to play catch up work being a grown up :( Should be able to in a couple hours (that means I am going to loose my data again!!! NOOOO!!!)

:)

On Dec 6, 2013, at 12:43 PM, Maarten Billemont [email protected] wrote:

Can you provide USM logs of what happens when you do this?

— Reply to this email directly or view it on GitHub.

kdbdallas avatar Dec 06 '13 21:12 kdbdallas

well, if you do a setCloudDisabledAndOverwriteLocalWithCloudIfConfirmed: to force a migration from cloud -> local, then do a [self.ubiquityStoreManager deleteCloudContainerLocalOnly:YES]; you can always do a setCloudEnabledAndOverwriteCloudWithLocalIfConfirmed: any time later to migrate local back to cloud and re-populate if your cloud store did get emptied :-)

lhunath avatar Dec 06 '13 21:12 lhunath

... or just migrateCloudToLocal and migrateLocalToCloud.

lhunath avatar Dec 06 '13 21:12 lhunath