code: public void cancelDelegationToken(String delegationToken) throws HiveSQLException {
      if (saslServer == null) {
        throw new HiveSQLException(
            "Delegation token only supported over kerberos authentication", "08S01");
      }
      try {
        saslServer.cancelDelegationToken(delegationToken);
      } catch (IOException e) {
        throw new HiveSQLException(
            "Error canceling delegation token " + delegationToken, "08S01", e);
      }
    }
docs: cancel given delegation token