WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

NavigationFavorites::delete_item_by_current_user() public WC 1.0

Delete a favorite for current user.

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

No Hooks.

Return

WP_REST_Response. Nothing.

Usage

$NavigationFavorites = new NavigationFavorites();
$NavigationFavorites->delete_item_by_current_user( $request );
$request(WP_REST_Request) (required)
Request data.

Code of NavigationFavorites::delete_item_by_current_user() WC 5.3.0

<?php
public function delete_item_by_current_user( $request ) {
	$current_user = get_current_user_id();

	if ( ! $current_user ) {
		return $this->prepare_error(
			new \WP_Error(
				'woocommerce_favorites_unauthenticated',
				__( 'You must be authenticated to use this endpoint', 'woocommerce' )
			)
		);
	}

	$request->set_param( 'user_id', $current_user );

	return $this->delete_item( $request );
}