How to remove test orders before go live in Magento 2 ?

How to remove test orders before go live in magento 2 – In this article i am going to write small how to article. About removing test orders from magento 2 before go live. This situation is pretty common for every developers. During the testing there might be lot of test orders and need to clear all test orders before go live.

This task is some thing pretty simple. Can be achieved by running some mysql queries in the database. Below are the set of mysql queries which covered all the order related tables to remove the test orders. Before running these script better to keep a backup for precaution.

This will remove the orders and set the order increment id to 0. So the new stores orders start from 1.

Hope this will help some one to save there time.

That’s it. Have a nice day.Enjoy coding , Learn , Experience , Teach and Help.

1 thought on “How to remove test orders before go live in Magento 2 ?”

Leave a Reply

Your email address will not be published. Required fields are marked *