Try our conversational search powered by Generative AI!
AI OnAI Off
You can do it by using OrderRepository, like:
public void DeleteCart(ICart cart) { // what to do here? OrderRepository.Service.Delete(cart.OrderLink); }
After I have converted my cart to a purchase order, I want to delete the cart. How can I do that programmatically?
It's in Commerce 11.