Hello.

I am trying to delete seconday calendar but i can't get it to work.

   URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/
allcalendars/full");
        CalendarFeed resultFeed = myService.getFeed(feedUrl,
CalendarFeed.class);


        System.out.println("Your calendars:");
        System.out.println();

        for (int i = 0; i < resultFeed.getEntries().size(); i++) {

          CalendarEntry entry = resultFeed.getEntries().get(i);

// if not primary cal

           if(i>0) {

             entry.delete();

           }
        }


But it throws ServiceException: Could not delete calendar, Internal
Server error.

I've tried other methods also, like service.delete(entryUrl); and with
different google accounts, same problem.

Any help?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to