Magento 2 Remove Sample Data / Test Data

Sometimes you wish to remove Sample Data or even Test Data before going live with the webshop. In this article there are several queries which you can use to remove specific elements.

1. All Products and Related Data

2. All Categories

3. All Customer Data

4. All Orders/Invoices etc.

5. All Company & Negotiable Quote Data (B2B EE)

6. All Catalog Permissions Data (B2B EE)

7. All Customer Balance Data (B2B EE)

8. All Logging & Operation & Report Data

9. All Requisition List Data (B2B EE)

10. All Shared Catalog Data (B2B EE)

11. Third Party Data