Delete Cart

Use the deleteCart mutation to delete a cart and all items associated to it.

Mutation

deleteCart(input: DeleteCartInput!): DeletePayload!

DeleteCartInput

ArgumentTypeDescription
idID!The id of the Cart you wish to delete

DeletePayload

FieldTypeDescription
successBoolean!Either true or false
messageStringA success or failure message

Example

mutation {
  deleteCart(input: { id: "ck5r8d5b500003f5o2aif0v2b" }) {
    success
    message
  }
}