src/Services/CalendarEventsService.php
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;
    }
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;
    }
Deletes an calendar event and rebuilds the cache.

@param int $id

@return bool