title: Flink delete old check point file
body: <p>We are using file system as checkpoint state backend. Following is our setting:</p>
  
  <pre><code>StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
  env.setStreamTimeCharacteristic(timeCharacteristic);
  env.getConfig().setAutoWatermarkInterval(Time.seconds(30).toMilliseconds());
  env.enableCheckpointing(Time.seconds(30).toMilliseconds());
  CheckpointConfig checkpointConfig = env.getCheckpointConfig();
  checkpointConfig.setCheckpointingMode(CheckpointingMode.EXACTLY_ONCE);
  env.setStateBackend(new FsStateBackend(props.getProperty("backendstate.path")));
  </code></pre>
  
  <p>This works fine during development, but as soon as we deploy to production, we found out that the checkpoint files quickly eat up disk space. I did an ls to one of the checkpoint directory and find that </p>
  
  <pre><code>chk-10   chk-104  chk-13  chk-18  chk-23  chk-28  chk-32  chk-37  chk-41  chk-46  chk-50  chk-55  chk-6   chk-64  chk-69  chk-73  chk-78  chk-82  chk-87  chk-91  chk-96 chk-100  ... hundreds of them
  </code></pre>
  
  <p>I am wondering if there is a way to delete the older chk-x files or we have to remove them manually? </p>