Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a correct way to purge/delete old carts (eg older than X days)? We have a site with a couple of million carts, and this is making for a large database.
I can delete the rows from the database directly easily enough, but is there a "more correct" way of doing this, eg a method in the API?
The "right" way is to use the API to get orders and then .Delete() them. Use a DB reader to get the id's of the orders to delete. Then use OrderService.Instance.Get to get multiple orders and then delete them using the API.
Then a scheduled task calling a Surface controller would be the way to do it :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted