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

#   How to clear old entries in order history

##

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

Less More

- Posts: 220
- Thank you received: 8
-
-
-

8 years 8 months ago [\#288869](#288869) by [Udo](/forum/user/29928-udo "View Udo's Profile")  *[How to clear old entries in order history](/forum/35-orders-management/893963-how-to-clear-old-entries-in-order-history#288869 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.33  Hi,  The history table in the dbase is getting very very big. There are thousands of orders and each order has several entries in the order history table. This information is useful for recent orders. But it's superfluous for old orders that have been processed many months ago.  Is there a way to clear entries in the order history that are older than say a year?  Perhaps like the way the clearing of old entries is done in the Email History Plugin?  Kind regards, Udo")* was created by *[Udo](/forum/user/29928-udo "View Udo's Profile")*

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
-- PHP version -- : 5.6.33

Hi,

The history table in the dbase is getting very very big. There are thousands of orders and each order has several entries in the order history table.
This information is useful for recent orders. But it's superfluous for old orders that have been processed many months ago.

Is there a way to clear entries in the order history that are older than say a year?

Perhaps like the way the clearing of old entries is done in the Email History Plugin?

Kind regards,
Udo

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

8 years 8 months ago [\#288870](#288870) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to clear old entries in order history](/forum/35-orders-management/893963-how-to-clear-old-entries-in-order-history#288870 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.33  Hi,  The history table in the dbase is getting very very big. There are thousands of orders and each order has several entries in the order history table. This information is useful for recent orders. But it's superfluous for old orders that have been processed many months ago.  Is there a way to clear entries in the order history that are older than say a year?  Perhaps like the way the clearing of old entries is done in the Email History Plugin?  Kind regards, Udo")*

Hi,

There is no such system in place.
The history table doesn't store much data normally. While you indeed have several entries per order, that's the same with the order_product table.
But even with thousands of orders, it shouldn't be a big deal and should change performances keeping them.

Nevertheless, if you want to clear the history, you can edit the hikashop_history table and remove the old entries in there via your PHPMyAdmin.

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

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

Less More

- Posts: 220
- Thank you received: 8
-
-
-

8 years 8 months ago [\#289044](#289044) by [Udo](/forum/user/29928-udo "View Udo's Profile")  Replied by *[Udo](/forum/user/29928-udo "View Udo's Profile")* on topic *[How to clear old entries in order history](/forum/35-orders-management/893963-how-to-clear-old-entries-in-order-history#289044 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.33  Hi,  The history table in the dbase is getting very very big. There are thousands of orders and each order has several entries in the order history table. This information is useful for recent orders. But it's superfluous for old orders that have been processed many months ago.  Is there a way to clear entries in the order history that are older than say a year?  Perhaps like the way the clearing of old entries is done in the Email History Plugin?  Kind regards, Udo")*

Thanks for the reassurance.
I was afraid it might slow down performance.

Regards,
Udo

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