Symptom
In some cases, cart deletion may be required based on specific conditions in a single execution. The script below can be used to delete carts through a Groovy script.
The same approach can also be adapted for other models.
This script should not be used in a production environment without a proper data backup. A clear understanding of the impact is necessary before proceeding. 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.
Read more...
Environment
SAP Commerce Cloud
Product
Keywords
cartModel, modelService.remove, userModel, orderModel, cart, model, remove, groovy, delete, run, script, query, ccv2, hybris , KBA , CEC-SCC-PLA-PL , Platform , How To
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview