Anchor to section titled 'undefined'

cartTransformDelete
mutation

Requires write_cart_transforms access scope. Also: The user must have products and preferences permission to delete a cart transform function.

Destroy a cart transform function from the Shop.


Anchor to id
id
required

A globally-unique identifier for the cart transform.


Was this section helpful?

The globally-unique ID for the deleted cart transform.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation cartTransformDelete($id: ID!) {
  cartTransformDelete(id: $id) {
    deletedId
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "id": "gid://shopify/<objectName>/10079785100"
}