iCloud repeatedly deleting all my events, even after a restore

Yesterday iCloud deleted all of my calendars, and all my events (and also reminders), replacing them with two empty calendars named Home and Work. I have both Time Machine and Carbon Copy backups; I’ve restored the ~/Library/Calendars/ directory five times. Each time, my all my events are again deleted within a minute or so, unless I turn off all internet connectivity (even after disabling Refresh Calendars.)

The “Restore your calendars and events on iCloud.com” is unusable, since https://www.icloud.com/recovery/ improperly listed No Archives for Calendars, and also Bookmarks and Files. (There are ten archives listed for Contacts.)

    Sometimes after restoring, I get crash dialogs for /System/Library/PrivateFrameworks/CalendarDaemon.framework/Support/calaccessd and DataAccess.framework/Support/dataaccessd.


MacBook Pro 16″, macOS 14.7

Posted on Mar 28, 2025 10:00 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 24, 2025 11:07 AM

Another Apple bug: Trying to delete one of the calendars which failed to sync completely silently failed repeatedly. The console app recorded:


error 13:51:02.244740-0400 Calendar Exception thrown while attempting to perform a menu item's action. It has been caught in order to not leave the menu in an inconsistent state. This is a bug in the client code. *** +[NSIndexSet indexSetWithIndexesInRange:]: Range {9223372036854775807, 1} exceeds maximum index value of NSNotFound - 1


error	13:51:02.248047-0400	Calendar	(
	0   CoreFoundation                      0x00007ff8097e21ea __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007ff8092ad24b objc_exception_throw + 62
	2   Foundation                          0x00007ff80a8c4f01 +[NSProxy class] + 0
	3   EventKit                            0x00007ff82627dc09 -[EKCalendar reorderCalendars:betweenEarlier:later:] + 606
	4   EventKit                            0x00007ff82627d966 -[EKCalendar reorderBetweenEarlier:later:] + 131
	5   Calendar                            0x000000010bac2c55 Calendar + 2116693
…
31  AppKit                              0x00007ff80d19d085 NSApplicationMain + 803
	32  Calendar                            0x000000010b8c139c Calendar + 13212
	33  dyld                                0x00007ff8092e5530 start + 3056
)

default	13:52:28.803847-0400	Calendar	Requesting a reminders sync with reason App Activated
default	13:52:28.803909-0400	Calendar	AppDelegate: trigger throttled sync {reason: <private>}


BusyCal failed, at least not silently, but with an incorrect explanation:

You cannot delete the calendar "OS+IG" because it is your default scheduling calendar.

Deleting it from my secondary Mac worked.

Similar questions

22 replies
Question marked as Top-ranking reply

Jun 24, 2025 11:07 AM in response to Flash Sheridan

Another Apple bug: Trying to delete one of the calendars which failed to sync completely silently failed repeatedly. The console app recorded:


error 13:51:02.244740-0400 Calendar Exception thrown while attempting to perform a menu item's action. It has been caught in order to not leave the menu in an inconsistent state. This is a bug in the client code. *** +[NSIndexSet indexSetWithIndexesInRange:]: Range {9223372036854775807, 1} exceeds maximum index value of NSNotFound - 1


error	13:51:02.248047-0400	Calendar	(
	0   CoreFoundation                      0x00007ff8097e21ea __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007ff8092ad24b objc_exception_throw + 62
	2   Foundation                          0x00007ff80a8c4f01 +[NSProxy class] + 0
	3   EventKit                            0x00007ff82627dc09 -[EKCalendar reorderCalendars:betweenEarlier:later:] + 606
	4   EventKit                            0x00007ff82627d966 -[EKCalendar reorderBetweenEarlier:later:] + 131
	5   Calendar                            0x000000010bac2c55 Calendar + 2116693
…
31  AppKit                              0x00007ff80d19d085 NSApplicationMain + 803
	32  Calendar                            0x000000010b8c139c Calendar + 13212
	33  dyld                                0x00007ff8092e5530 start + 3056
)

default	13:52:28.803847-0400	Calendar	Requesting a reminders sync with reason App Activated
default	13:52:28.803909-0400	Calendar	AppDelegate: trigger throttled sync {reason: <private>}


BusyCal failed, at least not silently, but with an incorrect explanation:

You cannot delete the calendar "OS+IG" because it is your default scheduling calendar.

Deleting it from my secondary Mac worked.

May 21, 2025 3:35 PM in response to Flash Sheridan


I’m now at 59,264 events on my main Mac, but that includes a duplicate calendar of 16,048 which I created during troubleshooting. Only 24,033 events have synced to my secondary Mac.


Apr 2, 2025 12:14 PM in response to Flash Sheridan

Today’s Data Loss Update:

Upgrading to the latest version of MacOS 14 made no difference; updating to 15.4 24E248 made things worse. Restoring ~/Library/Calendars/ no longer restores Calendar data; it now seems to reside in ~/Library/Group Containers/group.com.apple.calendar/. My only option seems to be restoring a couple of dozen individual .ics files I backed up in one of the intervals before my data got re-deleted. (Not sure what to do after that to restore my Reminders.)

Apr 25, 2025 3:49 PM in response to Flash Sheridan

I seem to be having some luck after exporting my biggest calendar from the Apple Calendar app on my main Mac, and then importing it into BusyCal, then moving the imported copy to iCloud. (I did get a warning that this loses invitees.) Some are now showing up on my secondary Mac and iCloud on the web. One warning apparently from BusyCal on my main iPhone, that an event had been modified on server.

Jun 25, 2025 2:58 PM in response to Flash Sheridan

Another complication:  Sometimes  Calendar has duplicate events on the origin Mac when BusyCal doesn’t, and other Mac do not.  One calendar which seemed to fail to sync completely (2088 entries on origin, 1311 one other Mac) had a lot of duplicates, which iCloud may have been smart enough to reject.  How I discovered this (which I don't recommend) was to restore it from an .ics file, waited until it synced to BusyCal, and removed duplicates there.  


    What I instead recommend is to export an apparently incompletely-synced calendar to .ics on both source and origin Calendar apps, and then in BBEdit sort and then remove duplicates; then compare with BeyondCompare.  Display diffs with context; manually scan for coherent text which appears only in the original.  Copy it, and search for it in the unsorted destination .ics in BBEdit; often the context will make it clear that it's an unimportant loss.

Jul 30, 2025 11:14 AM in response to Flash_Sheridan2

Another BusyCal bug:  Exporting a calendar with a lot of Cal.app-only duplicates, creating a new iCloud calendar in BusyCal, and then importing lost a small proportion of records in one calendar, as revealed by the BBEdit/BeyondCompare procedure below.  I don’t have an exact number, but there were 2112 events including duplicates, 1076 in the synced calendar; I found five missing events after getting about a tenth of the way through the BeyondCompare display of diffs with context.  All had meeting invitees.


I believe the BusyCal documentation warns about losing invitees when moving a calendar between local storage and iCloud, which might be related, so my next step is to try the same process, but creating the new calendar in  Calendar.app.

May 20, 2025 2:48 PM in response to Flash Sheridan

Exporting and then importing (in Apple’s Calendar app) a medium-sized calendar (997 events) on my main Mac got most of the events synchronized to my secondary Mac (847), according to the script below, even though the earlier import mostly failed to synchronize (168 events). But the events don’t seem to show up on either the secondary Mac (even after View/Refresh Calendars) or iCloud via Safari.


on run


set output to ""


set grandTotal to 0


set timestamp to short date string of (current date) & " " & time string of (current date)




tell application "Calendar"


-- Include hidden calendars by not filtering


repeat with cal in every calendar


set calName to name of cal


set eventCount to (count of events of cal)


set grandTotal to grandTotal + eventCount


set output to output & calName & ": " & eventCount & linefeed


end repeat



-- Add total line


set output to output & "TOTAL: " & grandTotal & " events" & linefeed


end tell



return timestamp & linefeed & output


end run

Apr 1, 2025 2:55 PM in response to Flash Sheridan

After I turned off iCloud synchronization for Calendar, my Calendar data gets deleted more slowly, after a couple of minutes. My Mac won’t sign out of iCloud; I just get a Spinning Cursor Of Pain next to “Signing Out.” I wasn’t allowed to change my iCloud password on my Mac; after I changed it on my iPhone, my Mac still thinks it‘s signed in, and I still get the Cursor Of Pain when I try to sign out. My Calendar data still gets deleted a couple of minutes after restoring via the Finder.

    I can’t back up my Calendar; File/Export/Calendar Archive silently quits after an implausibly brief time, but the resultant .icbu file is too small by a couple of orders of magnitude.

    I would like to think that Apple Quality Assurance deteriorated after I left for the second time, but the rot actually started the year I rejoined it.

Apr 23, 2025 2:04 PM in response to Flash Sheridan

Sometime before 2025-04-18, the iCloud Calendar web seemed finally to get updated, though my devices were obviously missing some events. (Around the same time the Contacts app on my main machine stopped updating, though the local BusyContacts did, as did the web app.) After restoring with 2Do, the Reminders web app seemed to get all the categories, but none of the events.

Apr 23, 2025 2:17 PM in response to Flash Sheridan

My sacrificial laptop got only 3174 events, out of 34265 events. (Counted with a script written to count events by DeepSeek, replacing an old one broken by API changes a decade ago.)



on run


set timestamp to short date string of (current date) & " " & time string of (current date)



tell application "Calendar"


set totalEvents to count of (every event of every calendar)


end tell



return timestamp & ": " & totalEvents & " events"


end run

May 21, 2025 2:34 PM in response to Flash Sheridan

But the events don’t seem to show up on either the secondary Mac (even after View/Refresh Calendars) or iCloud via Safari.

Some events are now visible, but the number of events is still too low, 847 of 997. Exporting the two calendars as .ics, sorting the files in BBEdit, and diffing, showed that some of the omissions are significant (e.g. “10/22/10 Open Mobile and Social Computing Prof. Monica Lam”). So it’s not just that empty and duplicate items are filtered out by the export/import process. The obvious explanation is that Apple Calendar import is buggy in a way that BusyCal is not, but I don’t have enough data points to exclude coincidence.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iCloud repeatedly deleting all my events, even after a restore

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.