WordPress at a glance
function is not described

WC_API_Orders::delete_order() public WC 1.0

Delete an order

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

No Hooks.

Return

Array.

Usage

$WC_API_Orders = new WC_API_Orders();
$WC_API_Orders->delete_order( $id, $force );
$id(int) (required)
the order ID
$force(true/false)
true to permanently delete order, false to move to trash

Code of WC_API_Orders::delete_order() WC 5.0.0

<?php
public function delete_order( $id, $force = false ) {

	$id = $this->validate_request( $id, 'shop_order', 'delete' );

	return $this->delete( $id, 'order',  ( 'true' === $force ) );
}