private void removeDataDirRegion(
      String database, DataRegionId dataRegionId, List<String> fileFolders) {
    fileFolders.forEach(
        folder -> {
          String regionDir =
              folder + File.separator + database + File.separator + dataRegionId.getId();
          removeDir(new File(regionDir));
        });
  }
Register this DataNode into cluster.

@param isPreCheck do pre-check before formal registration
@throws StartupException if register failed.
@throws IOException if serialize cluster name and datanode id failed.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java