WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

WooSubscriptionsNotes::delete_any_note_for_product_id() public WC 1.0

Deletes a note for a given product ID, if the note exists at all.

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

No Hooks.

Return

null. Nothing.

Usage

$WooSubscriptionsNotes = new WooSubscriptionsNotes();
$WooSubscriptionsNotes->delete_any_note_for_product_id( $product_id );
$product_id(int) (required)
The product ID to search for.

Code of WooSubscriptionsNotes::delete_any_note_for_product_id() WC 5.3.0

<?php
public function delete_any_note_for_product_id( $product_id ) {
	$product_id = intval( $product_id );

	$note = $this->find_note_for_product_id( $product_id );
	if ( $note ) {
		$note->delete();
	}
}