public function session_report_remove($id_) { $this->check_authorized('manageReporting'); if (!Abstract_ReportSession::exists($id_)) { Logger::error('api', sprintf('Unknown archived session "%s"', $id_)); return false; } $ret = Abstract_ReportSession::delete($id_); if ($ret !== true) { Logger::error('api', sprintf('Unable to delete archived session "%s"', $id_)); return false; } $this->log_action('session_report_remove', array('id' => $id_)); return true; }