Recover the content of a CloudKit container, suppressed by mistake ?

Hi,

I made a mistake as I was trying to manage the storage on my iPhone. In Settings / myName / manage storage / swiftUI, I selected “erase data…”

I realized afterwards that this was linked to the CloudKit container from an app I had developed for myself.

This app keeps records of my purchases and consumption of wine bottles. All the content of this app has therefore vanished. it contained several years of data.

This app uses CoreData and CloudKit.

Does anyone know if there is any chance to recover my data ?

On iCloud.com, I see no way to do such a thing. On CloudKit console, I don’t see any possibility.

I have a backup of my iPhone on my computer; I guess that if I restore the iPhone, it will have some “CoreData” data, but not everything (images for example). And in that case, how to transfer back the data to the CloudKit container ?

Thanks for your help ! Best regards Nicolas

I encountered a similar issue but, unfortunately, did not have any backup data available. While attempting to recover the lost data, I noticed an intriguing inconsistency:

Some devices running older OS versions (unsupported by my app), but linked to the same Apple ID, display the container with a larger size (as if some data was preserved) compared to devices that had the app installed before the data was purged. On an older Mac, I run ls -a to list containers in ~/Library/Mobile Documents and obtained a comprehensive list of various containers. Unfortunately, mine CloudKit container was not present in that directory, but was visible in System Settings->iCloud->Manage Storage.

I am curious how it is possible for some devices to reference the same container but display different sizes. Is it possible to access the preserved data, assuming it is cached? Any suggestions on where to look would be greatly appreciated!

Recover the content of a CloudKit container, suppressed by mistake ?
 
 
Q