In some cases, you may want to delete carts based on conditions in one go. Please follow below script to delete carts using Groovy script.
The script can be modified and used for other models as well.
It is not advisable to use this script in your production without data backup. Please have a clear understanding of what you are doing before proceeding, and use at your own risk.
***Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.***
cartModel, modelService.remove, userModel, orderModel , KBA , CEC-COM-CPS-COR , SAP Commerce Core , How To
About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.