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

#   Purge old data

##

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

Less More

- Posts: 14
- Thank you received: 0
-
-

5 years 8 months ago [\#329441](#329441) by [dawehnes](/forum/user/49717-dawehnes "View dawehnes's Profile")  *[Purge old data](/forum/44-mass-actions/901902-purge-old-data#329441 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.25 -- Browser(s) name and version -- : Chrome 87.0.4280.88 -- Error-message(debug-mod must be tuned on) -- : none  Is there some supported process to purge old data?  For example, orders and e-mail logs that are more than 18 months old?  I assume that this can be done through a mass action, possibly triggered monthly.  Thanks, Dave")* was created by *[dawehnes](/forum/user/49717-dawehnes "View dawehnes's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.3.25
-- Browser(s) name and version -- : Chrome 87.0.4280.88
-- Error-message(debug-mod must be tuned on) -- : none

Is there some supported process to purge old data?

For example, orders and e-mail logs that are more than 18 months old?

I assume that this can be done through a mass action, possibly triggered monthly.

Thanks,
Dave

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy85MDE5MDItcHVyZ2Utb2xkLWRhdGE/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14262
-
-

5 years 8 months ago [\#329449](#329449) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Purge old data](/forum/44-mass-actions/901902-purge-old-data#329449 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.25 -- Browser(s) name and version -- : Chrome 87.0.4280.88 -- Error-message(debug-mod must be tuned on) -- : none  Is there some supported process to purge old data?  For example, orders and e-mail logs that are more than 18 months old?  I assume that this can be done through a mass action, possibly triggered monthly.  Thanks, Dave")*

Hi,

For the email logs, in the Hikashop Email History Plugin settings, that you can edit via the joomla plugins manager, you can set the parameter "Number of days" to define a retaining period for the log and the rest will be automatic.

For orders, there is no such mechanism as in most case, you want to keep everything.
But yes, you could create a mass action with a trigger "every month", a filter on the "order_modified" column with a condition &lt; {time}-47340000 and an action delete the elements.
Note that in that case, you also need to configure your cron task:
[ www.hikashop.com/support/documentation/5...ashop-cron-task.html](https://www.hikashop.com/support/documentation/55-hikashop-cron-task.html)

The following user(s) said Thank You: [dawehnes](/forum/user/49717-dawehnes "View dawehnes's Profile")

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

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

[](#top)
