Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections.
Arguments
id
StringThe unique identifier of the cart.
Mutation
1mutation deleteCart($id: String) {2 deleteCart(id: $id) {3 message4 success5 }6}
Try it
Input Variables
1{2 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"3}
Response
1{2 "deleteCart": {3 "message": "message",4 "success": true5 }6}
Was this section helpful?