Delete series of recurring events on Outlook Calendar API

916 views Asked by At

I can create recurring events through Outlook Calendar's API, but I haven't yet found how to delete such events all at once. The only "solution" I've come up with so far is to fetch all instances from an event within a given time range (using this) and make API calls to delete every one of them, one by one.

However, this is not only very time-consuming, but also makes no sense when we're talking about a recurring event that was created with the RecurrenceRange type NoEnd (which means it's gonna repeat forever) - what time range would I pick?

I'm sorry if it's a silly question, but I've read all questions from the outlook-restapi tag in here that had any relation with calendars and/or recurrence and also a few other questions from that tag (along with the API's docs/reference) and really didn't find much about how to deal with recurring events once they're created.

Thanks in advance for any help!

1

There are 1 answers

3
Yogesh On BEST ANSWER

You can delete the master event which will internally delete all instances. https://msdn.microsoft.com/office/office365/APi/calendar-rest-operations#DeleteAnEvent