|
Re: Efficiently Deleteng All Events in a Calendar: msg#00282org.google.api.calendar
code to delete all entries in the calendar is actually in the unittest caltest.cs in the C# lib. Looks like this: while (calFeed != null && calFeed.Entries.Count > 0) { // look for the one with dinner time... foreach (AtomEntry entry in calFeed.Entries) { entry.Delete(); iCount++; Tracing.TraceMsg("CalendarCleanup = deleting entry" + iCount); } // just query the same query again. calFeed = service.Query(query); } You should not have problems with the NextChunk property in general, what's the problem you got? I found that it is not useful for the delete job, as the server, when you start deleting, would end up skipping entries... Frank Mantek On 9/29/06, jwalton@xxxxxxxxx <jwalton@xxxxxxxxx> wrote:
--~--~---------~--~----~------------~-------~--~----~ 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 google-calendar-help-dataapi@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to google-calendar-help-dataapi-unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi -~----------~----~----~----~------~----~------~--~--- |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Efficiently Deleteng All Events in a Calendar: 00282, jwalton@xxxxxxxxx |
|---|---|
| Next by Date: | How do I add an event with named and defined time zone?: 00282, jwalton@xxxxxxxxx |
| Previous by Thread: | Re: Efficiently Deleteng All Events in a Calendari: 00282, jwalton@xxxxxxxxx |
| Next by Thread: | Re: Efficiently Deleteng All Events in a Calendar: 00282, jwalton@xxxxxxxxx |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |