[Skip to main content](#vessel-content)

#   Delete all products before import CSV

##

- **[maujbigo](/forum/user/32468-maujbigo "View maujbigo's Profile")**
- [![maujbigo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32468-maujbigo "View maujbigo's Profile") Topic Author
- [ Offline](/forum/user/32468-maujbigo)

Less More

- Posts: 147
- Thank you received: 6
-
-

11 years 8 months ago [\#196288](#196288) by [maujbigo](/forum/user/32468-maujbigo "View maujbigo's Profile")  *[Delete all products before import CSV](/forum/37-import-export-csv-xls/875971-delete-all-products-before-import-csv#196288 "-- HikaShop version -- : 2.3.5  Hi, What is the best way to delete all products? I mean, we have thousands of products so going through the administrator, select and delete is not an option.  We usually import the products via CSV. Sometimes I move products from one category to the other, or a variant that was listed and a parent to another parent. And then I get the message saying the product already exist. Even if I delete it from the CSV.  Ideally when I import my CSV there would be an option to remove the product there doesn't exist in the CSV and only import the ones that are there.  I tried creating a mass action to delete the products but I had no lucky. If this is the best way could you walk me through? or send a mass action file that deletes all products?  Thanks")* was created by *[maujbigo](/forum/user/32468-maujbigo "View maujbigo's Profile")*

-- HikaShop version -- : 2.3.5

Hi,
What is the best way to delete all products?
I mean, we have thousands of products so going through the administrator, select and delete is not an option.

We usually import the products via CSV. Sometimes I move products from one category to the other, or a variant that was listed and a parent to another parent. And then I get the message saying the product already exist. Even if I delete it from the CSV.

Ideally when I import my CSV there would be an option to remove the product there doesn't exist in the CSV and only import the ones that are there.

I tried creating a mass action to delete the products but I had no lucky.
If this is the best way could you walk me through? or send a mass action file that deletes all products?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzU5NzEtZGVsZXRlLWFsbC1wcm9kdWN0cy1iZWZvcmUtaW1wb3J0LWNzdj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago [\#196290](#196290) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Delete all products before import CSV](/forum/37-import-export-csv-xls/875971-delete-all-products-before-import-csv#196290 "-- HikaShop version -- : 2.3.5  Hi, What is the best way to delete all products? I mean, we have thousands of products so going through the administrator, select and delete is not an option.  We usually import the products via CSV. Sometimes I move products from one category to the other, or a variant that was listed and a parent to another parent. And then I get the message saying the product already exist. Even if I delete it from the CSV.  Ideally when I import my CSV there would be an option to remove the product there doesn't exist in the CSV and only import the ones that are there.  I tried creating a mass action to delete the products but I had no lucky. If this is the best way could you walk me through? or send a mass action file that deletes all products?  Thanks")*

Hi,

Yes the mass actions seems to be the best way to delete all the products.
But as you have thousands of products you can't run only one action to delete them all.

We recommend to not have more that 500 elements in a query.
So in your case you have to set the limit on 0 &gt; 500 and process the mass action until all the products have been deleted.

The delete function of the mass action only call the delete function of the product class in HikaShop with the desired ids.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzU5NzEtZGVsZXRlLWFsbC1wcm9kdWN0cy1iZWZvcmUtaW1wb3J0LWNzdj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.042 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
