WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Notes::delete_all_items() public WC 1.0

Delete all notes.

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

No Hooks.

Return

WP_REST_Request|WP_Error. Nothing.

Usage

$Notes = new Notes();
$Notes->delete_all_items( $request );
$request(WP_REST_Request) (required)
Request object.

Code of Notes::delete_all_items() WC 5.3.0

<?php
public function delete_all_items( $request ) {
	$notes = NotesRepository::delete_all_notes();
	$data  = array();
	foreach ( (array) $notes as $note_obj ) {
		$data[] = $this->prepare_note_data_for_response( $note_obj, $request );
	}

	$response = rest_ensure_response( $data );
	$response->header( 'X-WP-Total', NotesRepository::get_notes_count( array( 'info', 'warning' ), array() ) );
	return $response;
}