/** * Delete a calendar and all its events. * * @param string $calendar The name of the calendar to delete. * * @throws Kronolith_Exception */ public function delete($calendar) { $this->open($calendar); $result = $this->synchronize(); $result = $this->_data->deleteAll($calendar); if (is_callable('Kolab', 'triggerFreeBusyUpdate')) { //Kolab::triggerFreeBusyUpdate($this->_data->parseFolder($calendar)); } }
/** * Delete all objects from this data set. * * @return NULL */ public function deleteAll() { $this->_logger->debug(sprintf('Deleting all data objects in %s.', $this->_data->getPath())); $this->_data->deleteAll(); $this->_logger->debug(sprintf('Deleted all data objects in %s.', $this->_data->getPath())); }