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

#   Delete orders before 1/1/2015

##

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

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 3 months ago [\#212598](#212598) by [nojunkgoodfood](/forum/user/35905-nojunkgoodfood "View nojunkgoodfood's Profile")  *[Delete orders before 1/1/2015](/forum/35-orders-management/878973-delete-orders-before-1-1-2015#212598 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi  Orders table is going to be more than 75MB so I want to delete all orders before 1/1/2015 as I do not want them. Manually deletion is not an option as you can understand, can you give me a way to do it through database? I am an advanced phpMyAdmin user but novice sql user. Any other way? Do I have to delete any other associated data with deleted orders?  Any help would be much appreciated.  Thank you")* was created by *[nojunkgoodfood](/forum/user/35905-nojunkgoodfood "View nojunkgoodfood's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.26

Hi

Orders table is going to be more than 75MB so I want to delete all orders before 1/1/2015 as I do not want them.
Manually deletion is not an option as you can understand, can you give me a way to do it through database?
I am an advanced phpMyAdmin user but novice sql user.
Any other way?
Do I have to delete any other associated data with deleted orders?

Any help would be much appreciated.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3ODk3My1kZWxldGUtb3JkZXJzLWJlZm9yZS0xLTEtMjAxNT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

11 years 2 months ago [\#212611](#212611) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delete orders before 1/1/2015](/forum/35-orders-management/878973-delete-orders-before-1-1-2015#212611 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi  Orders table is going to be more than 75MB so I want to delete all orders before 1/1/2015 as I do not want them. Manually deletion is not an option as you can understand, can you give me a way to do it through database? I am an advanced phpMyAdmin user but novice sql user. Any other way? Do I have to delete any other associated data with deleted orders?  Any help would be much appreciated.  Thank you")*

Hi,

You can use a mass action for that via the menu System&gt;Mass actions.
You'll be able to set a filter on the order_modified or order_created fields and an action delete the elements.
If you have more than a few thousands elements to delete, you'll want to keep a limit and run it several times.

That way, it will delete not only the orders but the products in the orders, the addresses if necessary, and the history of the orders too.

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

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

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

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 2 months ago -  11 years 2 months ago [\#212747](#212747) by [nojunkgoodfood](/forum/user/35905-nojunkgoodfood "View nojunkgoodfood's Profile")  Replied by *[nojunkgoodfood](/forum/user/35905-nojunkgoodfood "View nojunkgoodfood's Profile")* on topic *[Delete orders before 1/1/2015](/forum/35-orders-management/878973-delete-orders-before-1-1-2015#212747 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi  Orders table is going to be more than 75MB so I want to delete all orders before 1/1/2015 as I do not want them. Manually deletion is not an option as you can understand, can you give me a way to do it through database? I am an advanced phpMyAdmin user but novice sql user. Any other way? Do I have to delete any other associated data with deleted orders?  Any help would be much appreciated.  Thank you")*

Thank you Nicolas!

I made a mass action as per the screenshot and deleted all orders under a specific order_id.
Database and backend are totally cleaned from orders less than specified id.

Just send it to see if there is anything I missed, I hope not!

Best regards

- [ ![delete-orders.jpg](/forum/attachment/26181) ](/forum/attachment/26181 "delete-orders.jpg") [ ](/forum/attachment/26181?download=1 "delete-orders.jpg")

Last edit: 11 years 2 months ago by [nojunkgoodfood](/forum/user/35905-nojunkgoodfood "View nojunkgoodfood's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3ODk3My1kZWxldGUtb3JkZXJzLWJlZm9yZS0xLTEtMjAxNT90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#212748](#212748) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Delete orders before 1/1/2015](/forum/35-orders-management/878973-delete-orders-before-1-1-2015#212748 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi  Orders table is going to be more than 75MB so I want to delete all orders before 1/1/2015 as I do not want them. Manually deletion is not an option as you can understand, can you give me a way to do it through database? I am an advanced phpMyAdmin user but novice sql user. Any other way? Do I have to delete any other associated data with deleted orders?  Any help would be much appreciated.  Thank you")*

Hi,

It looks perfect.

Regards,

---

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

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

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