Site icon PrestaShop | General Knowledge

Prestashop how to delete default sample data

In PrestaShop (1.7 / 8.x), default sample data (demo products, categories, customers, orders, CMS pages) is usually installed when you choose β€œInstall demo products” during setup.

Below is the proper way to delete it safely.


βœ… METHOD 1 (Recommended) – Delete from Admin Panel

πŸ”Ή 1. Delete Demo Products

Go to:

Catalog β†’ Products
  1. Select all demo products
  2. Click Bulk actions
  3. Click Delete

πŸ”Ή 2. Delete Demo Categories

Go to:

Catalog β†’ Categories

Delete demo categories like:

⚠ Do NOT delete:


πŸ”Ή 3. Delete Demo Customers

Go to:

Customers β†’ Customers

Select demo customers β†’ Delete.


πŸ”Ή 4. Delete Demo Orders

Go to:

Orders β†’ Orders

Delete all test/demo orders.


πŸ”Ή 5. Delete Demo CMS Pages

Go to:

Design β†’ Pages

Delete unnecessary demo CMS pages.


βœ… METHOD 2 – Reset Using Database (Advanced)

⚠ Only do this if store is NEW and no real data exists.

Using phpMyAdmin:

  1. Open your database
  2. Empty these tables (DO NOT drop):
ps_product
ps_product_lang
ps_category (except ID 1 & 2)
ps_orders
ps_customer

⚠ Backup before doing this.


βœ… METHOD 3 – Reinstall Without Demo Data (Cleanest Way)

If your store is fresh:

  1. Delete entire PrestaShop installation
  2. Delete database
  3. Reinstall
  4. During installation β†’ Select:

❌ Do NOT install demo products

This is the cleanest method.


🚨 Important After Deleting

After removing demo data:

  1. Go to:
    Advanced Parameters β†’ Performance
    
  2. Click:
    • Clear cache

🎯 Best Practice

If your store is LIVE β†’ Use Method 1 only.
If your store is NEW β†’ Reinstall without demo data (best option).


Β 

Exit mobile version