logo       

Efficiently Deleteng All Events in a Calendar: msg#00260

org.google.api.calendar

Subject: Efficiently Deleteng All Events in a Calendar


I have a Calendar of typically 80 - 100 events (i.e. a dozen or so
conferences, with agenda items within each conference). I need to
periodically add new events, update existing events and delete passed
events. Logically the easiest approach is simply to delete all the old
content of the Calendar, and add all the events again, in their updated
state.

However I find that if I delete events by iterating through the events
collection of the Calendar, and deleting each event (with the delete()
method), it is quite time consuming.

Q1: Is there any way to delete all the events for a Calendar with a
single procedure?

Q2: Or if not, is there any way to delete a complete Calendar
(including its events), then to programmatically recreate the Calendar?

John Walton




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise