Hi Carsten,
Is this your primary calendar that you are trying to delete? if so,
this is not possible. Primary calendar is the only calendar that
cannot be deleted, it is bound to your google user account. This is
not possible with the UI as well as the API.
Hope that helps,
Austin
On Nov 7, 3:31 am, CC13 <[EMAIL PROTECTED]> wrote:
> Hello Austin,
>
> i change your example for my code like this:
>
> //
> foreach (CalendarEntry entry in resultFeed.Entries)
> {
> if (entry.title.text == "MyCalendar")
> {
> try
> {
> Uri uri = new Uri(entry.Id.Uri.ToString());
> service.Delete(uri);
> }
> catch (GDataRequestException)
> {
> Console.WriteLine("Unable to delete primary calendar.\n");
> }
> }}
>
> //
>
> I have checked the "entry.Id.Uri.ToString()" and there is the correkt
> CalendarID from MyCalendar. But the calender doesnt deleted.
>
> Can you help me?
> Carsten
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---