public void delete(TimelineEvent<E> event, TimelineUpdater timelineUpdater) {
        events.remove(event);

        if (timelineUpdater != null) {
            // update UI
            timelineUpdater.delete(event.getId());
        }
    }
Deletes a given event in the model with UI update.

@param event           event to be deleted
@param timelineUpdater TimelineUpdater instance to delete the event in UI
primefaces/src/main/java/org/primefaces/model/timeline/TimelineModel.java