Take the community feedback survey now.
                AI OnAI Off
            
        Take the community feedback survey now.
 
                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.