function cancelMeetings() {
  const events = CalendarApp.getEventsForDay(new Date());

  events.forEach(function(event) {
    if (event.getGuestList().length > 0) {
      event.setMyStatus(CalendarApp.GuestStatus.NO);
    }
  });
}
Declines all meetings for the day.