removeCheckpoints
Removes all stored checkpoints from the in-memory storage. If a filter is provided, this method will determine which checkpoints to remove based on the filter's logic.
Parameters
filter
Optional filter to determine whether any checkpoints should be removed conditionally. If null, all checkpoints will be removed unconditionally.