Empty all lines from a cart
One step with Optimizely. We can help you get access.
Get something done
Empty all lines from a cart
with Optimizely · Cart & Checkout
Use Optimizely: its Storefront API V1 Carts API lets you empty all lines from a cart in a single step (DELETE /api/v1/carts/{cartId}/cartlines). capabilities.work can help you get signed up and connected.
- How do I empty a cart without deleting the cart itself?
- Can I remove every line item from a cart at once?
Say it to your AI assistant
- Empty all line items from cart {cartId}.
- Remove every product line from cart {cartId} but keep the cart.
For your developer
DELETE /api/v1/carts/{cartId}/cartlines in Storefront API V1 Carts API. Full spec on APIs.io.