I have a code in apps script where I delete an event in calendar with the following instruction
var calendar = CalendarApp.getCalendarById("[email protected]")
.getEventSeriesById(IdParaBorrar).deleteEventSeries()
It works well when the event exists, but when the event (IdParaDelete) does not exist, the code stops.
I can not find a way to delete the event only if it exists and continue without marking an error.
Do you know how I can achieve it?