I am using Spring Batch MongoDB API. In order to free up some space in my MongoDB, I decided to clean up the job execution metadata by deleting any data older than two months from the following collections : - JobInstance - JobExecution - ExecutionContext - StepExecution
Is there any way to do this with spring batch, or I should just create a Dao and bulk delete each collection's old data.