How to delete a calendar collection RFC 6638

21 views Asked by At
  • I am trying to delete entire user calendar as part of user wanting to delete account.

  • I am trying to use following URLS to delete an event and calendar resource. The delete event URL works but the calendar URL does not.

  • I am getting URLDomain error.

     #define kEventURLFormat                         @"/calendars/users/%@/calendar/%@.ics"
    
     #define kCalendarCollectionURLFormat            @"/calendars/users/%@/calendar"
    
  • RFC 6638 mentions the following.

3.2.3.2. DELETE

When the server receives a DELETE method request targeted at a scheduling object resource, it MUST execute the Remove operation.

When the server receives a DELETE method request targeted at a calendar collection, it MUST execute the Remove operation on all scheduling object resources contained in the calendar collection.


What URL should I be using to delete entire USER calendar?

1

There are 1 answers

0
GJain On

This is the correct URL

#define kCalendarCollectionURLFormat            @"/calendars/users/%@/calendar/"

Http Delete request to django returns a 301(Moved permenantly)