private boolean localSessionCanBeDeleted(Session.Status status, Instant createTime, boolean activeForApplication) {
        // Delete sessions with state other than UNKNOWN or ACTIVATE or old sessions in UNKNOWN state
        if ( ! List.of(UNKNOWN, ACTIVATE).contains(status) || oldSessionDirWithUnknownStatus(createTime, status))
            return true;

        // This might happen if remote session is gone, but local session is not
        return isOldAndCanBeDeleted(createTime) && !activeForApplication;
    }
A session for which we don't have a watcher, i.e. hitherto unknown to us.

@param sessionId session id for the new session
configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java