Go to admin>sales>orders; Write down your test orders incremental ids, for example 100000001,100000002,100000003,100000111 ...
Following Code use to Delete order. setUseSessionInUrl(false); ...
This article provides a simple method to delete specified or all orders in the Magento via shell script.
$id = 10; // your order_id $order ...
In this article we create a cli command for delete one or more orders.
to replace “order ID” I the above example with the ID of order you wish to delete.
As magento doesn't allow to delete order from admin dashboard then in
The order_id is to be replaced with the ID of the order to be deleted. Set the prefix that is selected in the Magento store. Delete all orders at ...
Replace order_id by the ID of the order that you would like to delete, and prefix by the one you have chosen in your Magento site.
Delete Order Item By Item Id Magento 2. Remove the Order item details using id from the database table. Sales Item links with Order table.