Delete all orders
To delete all existing orders, perform the following:
- Get the orders manager.
Get an instance of the OrdersManager object.
- Get all existing orders.
To do this call the GetOrders method of the orders manager.
As a result, you get a queryable collection of all created order objects.
- Iterate through the orders collection.
- Delete the orders
Call the DeleteOrder method of the orders manager.
- Save the changes to the orders manager.
To delete all existing orders, use the following code sample:
All orders are deleted.