Hi Carsten,
This is how you would delete calendar with the C# client library:
public void deleteCalendar() {
String calendarId =
"[EMAIL PROTECTED]";
Uri uri = new Uri("http://www.google.com/calendar/feeds/default/
owncalendars/full/" + calendarId);
service.Delete(uri);
}
You would replace "calendarId" with the actual ID of your calendar,
which you can look up from the setting view of Calendar UI.
Hope that helps,
Austin
On Nov 6, 10:56 pm, CC13 <[EMAIL PROTECTED]> wrote:
> Hello,
>
> i create a calendar
> likehttp://code.google.com/apis/calendar/developers_guide_dotnet.html#Cre...
> , thats ok.
>
> The calendar title.text is "MyCalendar". If i like to delete this
> calender:
>
> //
> CalendarQuery query = new CalendarQuery();
> query.Uri = new Uri("http://www.google.com/calendar/feeds/default/
> owncalendars/full");
> CalendarFeed resultFeed = service.Query(query);
>
> foreach (CalendarEntry entry in resultFeed.Entries)
> {
> if (entry.title.text == "MyCalendar")
> {
> try
> {
> entry.Delete();
> }
> catch (GDataRequestException)
> {
> Console.WriteLine("Unable to delete primary calendar.\n");
> }
> }}
>
> //
>
> The Calendar don't delete. Have any an answer for me?
>
> best regards,
> 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
-~----------~----~----~----~------~----~------~--~---