WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Schedulers

OrdersScheduler::delete() public WC 1.0

Delete a batch of orders.

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

No Hooks.

Return

null. Nothing.

Usage

$result = OrdersScheduler::delete( $batch_size );
$batch_size(int) (required)
Number of items to delete.

Code of OrdersScheduler::delete() WC 5.3.0

<?php
public static function delete( $batch_size ) {
	global $wpdb;

	$order_ids = $wpdb->get_col(
		$wpdb->prepare(
			"SELECT order_id FROM {$wpdb->prefix}wc_order_stats ORDER BY order_id ASC LIMIT %d",
			$batch_size
		)
	);

	foreach ( $order_ids as $order_id ) {
		OrdersStatsDataStore::delete_order( $order_id );
	}
}