WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Schedulers

CustomersScheduler::delete() public WC 1.0

Delete a batch of customers.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of CustomersScheduler::delete() WC 5.3.0

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

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

	foreach ( $customer_ids as $customer_id ) {
		CustomersDataStore::delete_customer( $customer_id );
	}
}