Batch garbage collection