WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Schedulers

ImportScheduler::delete_batch_init() public WC 1.0

Queue item deletion in batches.

{} It's a method of the class: ImportScheduler{}

No Hooks.

Return

null. Nothing.

Usage

$result = ImportScheduler::delete_batch_init();

Code of ImportScheduler::delete_batch_init() WC 5.2.2

<?php
public static function delete_batch_init() {
	global $wpdb;
	$batch_size = static::get_batch_size( 'delete' );
	$count      = static::get_total_imported();

	if ( 0 === $count ) {
		return;
	}

	$num_batches = ceil( $count / $batch_size );

	self::queue_batches( 1, $num_batches, 'delete_batch' );
}