Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs-test.rye.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

This mutation has been deprecated. It is a no-op, and the cart specified by input.id will not actually be deleted.

Arguments

input
required
The input object contains the unique identifier (ID) for the cart that needs to be deleted.

Returns

DeletedCart.deletedId
The unique identifier (ID) of the deleted cart.

Example - request

Query arguments
{
    "input": {
        "id": "{{cartId}}"
    }
}
GraphQL
mutation ($input: CartDeleteInput!) {
    removeCart(input: $input) {
        deletedId
    }
}

Example - response

Response
{
    "data": {
        "removeCart": {
            "deletedId": "teWvPufPy8c2AcfkfBo9"
        }
    }
}

Errors

If the cart is not found then a corresponding error is returned
JSON
{
    "errors": [
        {
            "message": "Cart not found: someInvalidCartId",
            "path": [
                "removeCart"
            ],
            "extensions": {
                "code": "CART_NOT_FOUND_ERROR"
            }
        }
    ],
    "data": null
}