3

I have an event Series in my calendar, and I can not delete Future Events only using Apps Script. The only function I found is "deleteEventSeries" which deletes all the events (previous and past).

I tried looping on Calendar events within a certain period, and delete events that has the same Event Series ID as my target Event Series, But this took too much time to be executed.

Is this something that can be accomplished using Google Apps Script ?

Rubén
  • 34,714
  • 9
  • 70
  • 166
Duparingo
  • 31
  • 3

1 Answers1

0

Rather than "deleting" future events, change the recurrence rule to include recurrence ending date by using until(date)

AFAIK for existing recurrente events / series events first we have to get the actual recurrence rule and replace it with a new rule including the end date, the last by using setRecurrence(recurrence, startTime, endTime)

Related

Rubén
  • 34,714
  • 9
  • 70
  • 166