The REST API does expose DELETE /crm/rest/v1/orders/{id}, but the PHP SDK doesn’t implement it as a direct delete($id) method. Instead, the SDK handles deletes by first retrieving the resource and then calling delete() on the object.
$app->deleteInvoice($id); this will delete the invoice, i want to delete the order via PHP SDK, its not a big deal im using REST endpoint alternately to do this, but i was curious why this is not working now, previously it was working, and my order is blank with no payment and item in it