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

#   Delete all products from database

##

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

Less More

- Posts: 152
- Thank you received: 0
-
-
-

13 years 10 months ago [\#83338](#83338) by [plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")  *[Delete all products from database](/forum/4-how-to/77039-delete-all-products-from-database#83338 "I'd like to delete all products from Hikashop and &quot;start again&quot; (with product IDs reset to 0 etc). I just wanted to check which database tables do I need to flush to achieve this?")* was created by *[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")*

I'd like to delete all products from Hikashop and "start again" (with product IDs reset to 0 etc). I just wanted to check which database tables do I need to flush to achieve this?

---

Create your own style of luxury [ bespoke furniture](http://www.clothierjones.com) online

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#83358](#83358) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Delete all products from database](/forum/4-how-to/77039-delete-all-products-from-database#83358 "I'd like to delete all products from Hikashop and &quot;start again&quot; (with product IDs reset to 0 etc). I just wanted to check which database tables do I need to flush to achieve this?")*

Hi,

You need to flush:
\#__hikashop_product
\#__hikashop_price
\#__hikashop_product_category
\#__hikashop_product_related

And
\#__hikashop_order
\#__hikashop_order_product
\#__hikashop_history

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [SG](/forum/user/12204-sg "View SG's Profile")

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

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 5 months ago [\#103820](#103820) by [SG](/forum/user/12204-sg "View SG's Profile")  Replied by *[SG](/forum/user/12204-sg "View SG's Profile")* on topic *[Delete all products from database](/forum/4-how-to/77039-delete-all-products-from-database#103820 "I'd like to delete all products from Hikashop and &quot;start again&quot; (with product IDs reset to 0 etc). I just wanted to check which database tables do I need to flush to achieve this?")*

Hi,

And **\#\_\_hikashop\_file** too if I'm not mistaken, where **file\_type** is equal to '**product**'.

Greets

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

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

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile")
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

13 years 2 months ago [\#119092](#119092) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  Replied by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")* on topic *[Delete all products from database](/forum/4-how-to/77039-delete-all-products-from-database#119092 "I'd like to delete all products from Hikashop and &quot;start again&quot; (with product IDs reset to 0 etc). I just wanted to check which database tables do I need to flush to achieve this?")*

I suggest this SQL code to do the job :
Code:

-- ----------------------------- -- Delete all products (and not categories) from database. -- ----------------------------- TRUNCATE TABLE &#96;tosdq_hikashop_product&#96;; ALTER TABLE &#96;tosdq_hikashop_product&#96; AUTO_INCREMENT=0; TRUNCATE TABLE &#96;tosdq_hikashop_price&#96;; ALTER TABLE &#96;tosdq_hikashop_price&#96; AUTO_INCREMENT=0; TRUNCATE TABLE &#96;tosdq_hikashop_product_category&#96;; ALTER TABLE &#96;tosdq_hikashop_product_category&#96; AUTO_INCREMENT=0; TRUNCATE TABLE &#96;tosdq_hikashop_product_related&#96;; ALTER TABLE &#96;tosdq_hikashop_product_related&#96; AUTO_INCREMENT=0; TRUNCATE TABLE &#96;tosdq_hikashop_order&#96;; ALTER TABLE &#96;tosdq_hikashop_order&#96; AUTO_INCREMENT=0; TRUNCATE TABLE &#96;tosdq_hikashop_order_product&#96;; ALTER TABLE &#96;tosdq_hikashop_order_product&#96; AUTO_INCREMENT=0; TRUNCATE TABLE &#96;tosdq_hikashop_history&#96;; ALTER TABLE &#96;tosdq_hikashop_history&#96; AUTO_INCREMENT=0; DELETE FROM &#96;tosdq_hikashop_file&#96; WHERE file_type='product'; ALTER TABLE &#96;tosdq_hikashop_file&#96; AUTO_INCREMENT=0; TRUNCATE TABLE &#96;tosdq_hikashop_variant&#96;; ALTER TABLE &#96;tosdq_hikashop_variant&#96; AUTO_INCREMENT=0; TRUNCATE TABLE &#96;tosdq_hikashop_cart&#96;; ALTER TABLE &#96;tosdq_hikashop_cart&#96; AUTO_INCREMENT=0; TRUNCATE TABLE &#96;tosdq_hikashop_cart_product&#96;; ALTER TABLE &#96;tosdq_hikashop_cart_product&#96; AUTO_INCREMENT=0;

The following user(s) said Thank You: [SG](/forum/user/12204-sg "View SG's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDM5LWRlbGV0ZS1hbGwtcHJvZHVjdHMtZnJvbS1kYXRhYmFzZT90bXBsPW1hcmtkb3du) 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.224 seconds

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

[](#top)
