WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Schedulers

ImportScheduler::delete_batch() public WC 1.0

Delete a batch by passing the count to be deleted to the child delete method.

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

No Hooks.

Return

null. Nothing.

Usage

$result = ImportScheduler::delete_batch();

Code of ImportScheduler::delete_batch() WC 5.3.0

<?php
public static function delete_batch() {
	wc_admin_record_tracks_event( 'delete_import_data_job_start', array( 'type' => static::$name ) );

	$batch_size = static::get_batch_size( 'delete' );
	static::delete( $batch_size );

	ReportsCache::invalidate();

	wc_admin_record_tracks_event( 'delete_import_data_job_complete', array( 'type' => static::$name ) );
}