Menu
cartTransformDelete
Removes an existing cart transform function from the merchant's store, disabling any customized bundle or cart modification logic it provided. This mutation persistently deletes the transform configuration and stops all associated cart processing. For example, when discontinuing a bundle app or removing specific merchandising features, you would delete the corresponding cart transform to ensure customers no longer see the bundled products or modified cart behavior. Use `CartTransformDelete` to: - Deactivate customized bundle logic when removing app features - Clean up unused transform functions - Disable cart modifications during app uninstallation - Remove outdated merchandising strategies - Restore default cart behavior for merchants The deletion processes immediately and returns the ID of the removed cart transform for confirmation. Once deleted, the transform function stops processing new cart operations, though existing cart sessions may retain their current state until refresh. This ensures a clean transition without disrupting active customer sessions. Consider the timing of deletions carefully, as removing transforms during peak shopping periods could affect customer experience if they have active carts with transformed items. Learn more about [managing cart transforms](https://shopify.dev/docs/apps/selling-strategies/bundles).
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the cartTransformDelete action (under Cart).
- Fill in the fields below, then reference the result from later steps as
{{carttransformdelete.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation CartTransformDelete($id: ID!) {
cartTransformDelete(id: $id) {
deletedId
userErrors {
code
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"id": "string"
}
Response
Read the result with {{carttransformdelete.response.data.data.cartTransformDelete}}. If the API returns errors, the step fails and they are at {{carttransformdelete.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.