code: public function deleteCalendarEvent($id)
      {
          $cache = $this->cache;
  
          $this->calendarEvent->destroy($id);
  
          $allEvents = $this->getAllEvents();
          unset($allEvents[$id]);
          $cache::put(self::ALL_EVENTS_KEY, $allEvents, $this->cacheTimeToLive);
  
          return true;
      }
docs: Deletes an calendar event and rebuilds the cache.
  
  @param int $id
  
  @return bool