private static void cleanTsFileDir() {
    for (final String dataDir : IoTDBDescriptor.getInstance().getConfig().getDataDirs()) {
      final File pipeHardLinkDir =
          new File(
              dataDir + File.separator + PipeConfig.getInstance().getPipeHardlinkBaseDirName());
      if (pipeHardLinkDir.isDirectory()) {
        LOGGER.info(
            "Pipe hardlink dir found, deleting it: {}, result: {}",
            pipeHardLinkDir,
            FileUtils.deleteQuietly(pipeHardLinkDir));
      }
    }
  }
Delete the data directory and all of its subdirectories that contain the
PipeConfig.PIPE_TSFILE_DIR_NAME directory.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/PipeDataNodeHardlinkOrCopiedFileDirStartupCleaner.java