61

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.

Daniel Galasko
  • 23,617
  • 8
  • 77
  • 97
János
  • 32,867
  • 38
  • 193
  • 353

3 Answers3

37

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.

grg
  • 5,023
  • 3
  • 34
  • 50
Ezimet
  • 5,058
  • 4
  • 23
  • 29
4

You cant delete container currently. Best is to name containers App agnostic so you can reuse them later if needed for other Apps.

E.g: iCloud.com.mycompany.container1

Darko
  • 9,655
  • 9
  • 36
  • 48
0

Although, you still can't delete containers (as other answers have correctly stated) you can hide them.

  1. Click the dropdown arrow to the right of the Container's name
  2. Click Manage Containers

CloudKit Container Screen

  1. Toggle the Visibility of the container(s) you wish to hide.

Manage Containers screen

Not a perfect solution, but so much better than seeing all my testing, tutorial-generated, and other unused containers cluttering up the place.

Note: You can always unhide hidden containers by toggling the Visibility switch back on.

Trent M.
  • 101
  • 2
  • 4