WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

ReportsSync::delete_report_data() public WC 1.0

Delete all data for reports.

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

No Hooks.

Return

String. Nothing.

Usage

$result = ReportsSync::delete_report_data();

Code of ReportsSync::delete_report_data() WC 5.3.0

<?php
public static function delete_report_data() {
	// Cancel all pending import jobs.
	self::clear_queued_actions();

	foreach ( self::get_schedulers() as $scheduler ) {
		$scheduler::schedule_action( 'delete_batch_init', array() );
	}

	// Delete import options.
	delete_option( ImportScheduler::IMPORT_STATS_OPTION );

	return __( 'Report table data is being deleted.', 'woocommerce' );
}