Site icon PrestaShop | Magento | CRM Modules

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