You can delete all the events in a calendar, but you must do so by deleting each event individually. Grab the private/full feed and iterate over each of the events. Send a HTTP DELETE request to the edit URL for each of the events.
Please, however, do not do a delete all + add all as your normal syncing method. It is much more efficient for you to just send what has changed to Google Calendar and to your data source. Deleted events are held in the system with a 'canceled' status for 1-2 weeks after the last modification of the entry. This is necessary to inform clients of events which have been deleted in Google Calendar when a request is made with the updated-min query parameter (note: there is a bug in this currently that we hope to have resolved in the near future). This means that continuous 'delete all/add all syncs' will lead to a huge calendar which may cause you to experience ERR_QUOTA issues as reported by others on this group. Cheers, -Ryan On 2/23/07, iznogoud320 <[EMAIL PROTECTED]> wrote: > > > Hi everybody. > I'd need to delete all the events of a calendar simply using HTTP. Is > that possible? > The reason is that I'd only need to empty a calendar and then send all > the new datas I have. > I do not use java programming language (using Delphi 7) and the use > of the HTTP would be the easiest for me. > Any possibility? > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
