deleteRecordZone(withID:)
Deletes a specific record zone.
Declaration
@discardableResult func deleteRecordZone(withID zoneID: CKRecordZone.ID) async throws -> CKRecordZone.IDParameters
- zoneID:
The identifier of the record zone to delete.
Return Value
The identifier of the deleted record zone.
Discussion
This method throws an error if the request fails, such as when the zone does not exist on the server, the network is unavailable or the device doesn’t have an active iCloud account.
For information on a more convenient way to delete record zones, see modifyRecordZones(saving:deleting:).