How can I delete the test orders created in my store?
I have opened the database but I couldn't find the order table.
Please help me to delete the orders.
I'm using the later version of Magento 2.
Magento – Magento 2: how to delete orders from the database
databasemagento2.2.2orders
Best Answer
I suggest you to avoid direct mess with SQL.
You can use any good extension like Mageplaza
Another option is to create a script on root and delete order programmatically
You can create a file at root with following code:
Edit I
If you want to delete order using script you can put above code on root folder of magento.After that you can hit URL in browser.
For example your magento is installed at www.example.com and your file name is
deleteOrder.php
you can run it by:If you want to install extension you need to
You can also find document at Official Site