search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Delete events based on ids stored in an array

Asked by Giorgi
4 years ago.

Hello guys!

Is there a way to delete events, based on ids stored in an array ?

I have => array: ["1" , "2" , "3" , "4" , "5"]

How to remove( delete ) the events using the way explained in the documentation like:

let event = dps.events.find(id);
dps.events.remove(event);

Thanks in advance

Answer posted by Dan Letecky [DayPilot]
4 years ago.
array.forEach(function(id) {
  dp.events.remove(id);
});
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.