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.

Currently only a Queries for the following Data

  1. All Products, Categories and Related Data
  2. All Customers
  3. All Orders/Invoices etc.

1. All Products and Related Data

2. All Customer Data

3. All Orders/Invoices etc.

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

5. All Catalog Permissions Data (B2B EE)

6. All Customer Balance Data (B2B EE)

7. All Logging & Operation & Report Data

8. All Requisition List Data (B2B EE)

9. All Shared Catalog Data (B2B EE)

10. Third Party Data