I\'m loading dynamic events from a JSON source, but each time I click a different room, I want to clear all the events prior to fetching the new ones
I have attempte
version 5 does not support the "removeEvents" function. you can loop through the list of events and delete them one by onevar listeEvent = calendar.getEvents();listeEvent.forEach(event => { event.remove()});
var listeEvent = calendar.getEvents();listeEvent.forEach(event => { event.remove()});