Hi Lindsay, There isn't a way to delete all events at once. You'd have to iterate through each one, but you need to be careful. When events are deleted using the Calendar data API, they are marked as cancelled and not removed immediately. As a result, if you repeatedly add and remove a bunch of events, you can reach the size limit allocated for calendars.
Developers creating calendar sync applications have run into this problem in the past when they remove all events and then add new ones. The recommended method is to only process changes in events. Here are a couple threads you can read to learn more about the issue: http://groups.google.com/group/google-calendar-help-dataapi/browse_thread/thread/cb3021a3ff848869/a179bf1ffd67796f http://groups.google.com/group/google-calendar-help-dataapi/browse_thread/thread/85ccfde70c57885f/2cc1ab3d255e977b Happy coding, Lane On Apr 18, 2:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Is there a way to delete all the events off of a calendar? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
