Delete all events from a section


Is there a way to delete all the events of a section knowing the section id without going through all the events ? (or find any strategy regarding the event’s id).

Thanks in adanvce

In my case, I am using a timeline view.

no, scheduler.deleteEvent should be called for each event in order to remove it. So you’ll need to iterate all calendar events and call scheduler.deleteEvent for each event of the required section.
Alternatively, you could delete events on a backend and simply reload calendar data after it’s done (scheduler.clearAll() , scheduler.load(url))

Ok, thanks a lot for your reply and your recommandation :slight_smile: