public void cleanupLocalSnapshot() {
    try {
      cleanupSnapshot(newSnapshotDirName);
      stateMachine.clearSnapshot();
    } catch (ConsensusGroupModifyPeerException e) {
      logger.warn(
          "Cleanup local snapshot fail. You may manually delete {}.", newSnapshotDirName, e);
    }
  }
In the case of multiple copies, the minimum synchronization index is selected. In the case of
single copies, the current index is selected
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensusServerImpl.java