Delete multiple occurrences of recurring event

Is there a way to delete multiple occurrences from a recurring event?
For example:
If I have a recurring event, each day, from 1 sept to 20 sept. How can I delete all occurrences from 10 sept to 15 sept? I need a way to get the timestamps of when those particular events would have appeared on the calendar and insert them with rec_type = “none” in DB.
I can get the dates with getRecDates, but that doesn’t help if one of the occurrences has been previously moved in some way. If I could get the id’s of the occurrences, I could extract the timestamps and work with those.

Thank you!

Hi,

You can get required occurrences by getEvents method. Here is a snippet how it works, check the result in console.