How do I delete a CloudKit container?

I accidentally created a new container in CloudKit, and it is really annoying that it comes up when I open dashboard. Any suggestion how to delete? On developer.apple.com I don’t see a delete button for containers.

Answer

Apple’s iOS CloudKit documentation: Enable iCloud and Select CloudKit

Important: When you select CloudKit, Xcode creates a default container ID based on the bundle ID. Because you can’t delete iCloud containers, verify that your bundle ID is correct in the General pane in Xcode before selecting CloudKit. To change your bundle ID, read Set the Bundle ID in App Distribution Quick Start.

Apple’s macOS CloudKit documentation: About Containers and Databases

Multiple apps and users have access to iCloud, but data is segregated and encapsulated in partitions called containers. The containers belonging to your apps cannot be accessed by apps from another developer. However, your apps can share containers. Multiple apps can share the same container, and one app can use multiple containers. There’s one default container per app, but you can create additional custom containers. The identifier for the default container matches the app’s bundle ID. The other container IDs you specify need to be unique across all developer accounts. Containers can’t be deleted.

Attribution
Source : Link , Question Author : János , Answer Author : grg

Leave a Comment