@Override
  public TSStatus removeAINode(TAINodeRemoveReq req) {
    LOGGER.info("ConfigNode RPC Service start to remove AINode, req: {}", req);
    RemoveAINodePlan removeAINodePlan = new RemoveAINodePlan(req.getAiNodeLocation());
    TSStatus status = configManager.removeAINode(removeAINodePlan);
    LOGGER.info(
        "ConfigNode RPC Service finished to remove AINode, req: {}, result: {}", req, status);
    return status;
  }
ConfigNodeRPCServer exposes the interface that interacts with the DataNode
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/service/thrift/ConfigNodeRPCServiceProcessor.java