code: public void logout(KiteConnect kiteConnect) throws KiteException, IOException {
          /** Logout user and kill session. */
          JSONObject jsonObject10 = kiteConnect.logout();
          System.out.println(jsonObject10);
      }
docs: Logout user.