Fetch inputs in batches, delete after processing.