From the Magento dashboard, there is no intuitive way of deleting/clearing/resetting customer, order, search, or tag data. As developers, we have to test the various functions of our specific Magento setup before presenting it to the client. Before the site can go live, all of the test data has to be removed so it doesn’t interfere with the client’s other business functions such as accounting and inventory.
Fortunately, removing test data is as easy as running SQL queries:
Clear customers:
TRUNCATE TABLE `customer_entity`
Clear orders:
TRUNCATE TABLE `sales_order`
Clear searches:
TRUNCATE TABLE `catalogsearch_query`
Clear tags:
TRUNCATE TABLE `tag` TRUNCATE TABLE `tag_relation`
You might have expected to meddle with other tables, like all the `sales_order_*` or `customer_entity_*` tables. However, thanks to the database’s various constraints, any related rows are automatically deleted thus preventing orphan data.





Sep 09
Thanks for this. Quick and easy and it appears to have worked like a charm in Magento 1.3.0.
Sep 10
thank you!!