WordPress at a glance
function is not described

wc_delete_order_item() WC 1.0

Delete an item from the order it belongs to based on item id.

Return

true|false. Nothing.

Usage

wc_delete_order_item( $item_id );
$item_id(int) (required)
Item ID.

Code of wc_delete_order_item() WC 5.2.2

<?php
function wc_delete_order_item( $item_id ) {
	$item_id = absint( $item_id );

	if ( ! $item_id ) {
		return false;
	}

	$data_store = WC_Data_Store::load( 'order-item' );

	do_action( 'woocommerce_before_delete_order_item', $item_id );

	$data_store->delete_order_item( $item_id );

	do_action( 'woocommerce_delete_order_item', $item_id );

	return true;
}