code: private void removeDataNode(DiffEntry change) {
      if (checkFilePath(change.getOldPath(), NODE_FILE_DEPTH)) {
        Path nodeFilePath = new Path(this.repositoryDir, change.getOldPath());
        Config config = getNodeConfigWithOverrides(ConfigFactory.empty(), nodeFilePath);
        String nodeId = config.getString(FlowGraphConfigurationKeys.DATA_NODE_ID_KEY);
        if (!this.flowGraph.deleteDataNode(nodeId)) {
          log.warn("Could not remove DataNode {} from FlowGraph; skipping", nodeId);
        } else {
          log.info("Removed DataNode {} from FlowGraph", nodeId);
        }
      }
    }
docs: Remove a {@link DataNode} from the {@link FlowGraph}. The method extracts the nodeId of the
  {@link DataNode} from the node config file and uses it to delete the associated {@link DataNode}.
  @param change