private void batchDelete(List<S3Object> objects,
            Function<List<S3Object>, CompletableFuture<Void>> deleteFunc,
            List<CompletableFuture<Void>> cfList) {
            if (objects.isEmpty()) {
                return;
            }
            CollectionHelper.groupListByBatchSizeAsStream(objects, AwsObjectStorage.AWS_DEFAULT_BATCH_DELETE_OBJECTS_NUMBER)
                .map(deleteFunc)
                .forEach(cfList::add);
        }
Generate RemoveS3ObjectRecord for the deleted S3Objects.

@param deletedObjectIds the deleted S3Objects' ids
@return the result of the generation, contains the records which should be applied to the raft.
metadata/src/main/java/org/apache/kafka/controller/stream/S3ObjectControlManager.java