code: public synchronized void removeSessionLogs(SessionId sessionId) {
      if (storeLogsOnSessionQuit) {
        return;
      }
      ThreadKey threadId = sessionToThreadMap.get(sessionId);
      SessionId sessionIdForThread = threadToSessionMap.get(threadId);
      if (threadId != null && sessionIdForThread != null && sessionIdForThread.equals(sessionId)) {
        threadToSessionMap.remove(threadId);
        sessionToThreadMap.remove(sessionId);
      }
      perSessionRecords.remove(sessionId);
      logFileRepository.removeLogFile(sessionId);
    }
docs: Removes session logs for the given session id.
  
  NB! If the handler has been configured to capture logs on quit no logs will be removed.
  
  @param sessionId The session id to use.