--- title: The cartDeliveryAddressesUpdate mutation now supports removing all addresses from a cart - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/the-cartdeliveryaddressesupdate-mutation-now-supports-removing-all-addresses-from-a-cart md: https://shopify.dev/changelog/the-cartdeliveryaddressesupdate-mutation-now-supports-removing-all-addresses-from-a-cart.md --- [Back to Developer changelog](https://shopify.dev/changelog) August 8, 2025 Tags: * Action Required * Storefront GraphQL API * 2025-10 # The `cartDeliveryAddressesUpdate` mutation now supports removing all addresses from a cart To clear all delivery addresses associated with a cart, you can now call the [`cartDeliveryAddressesUpdate` mutation](https://shopify.dev/docs/api/storefront/latest/mutations/cartDeliveryAddressesUpdate) and set `addresses` to an empty array(`[]`). Previously, to clear a cart’s addresses, you could call the [`cartBuyerIdentityUpdate` mutation](https://shopify.dev/docs/api/storefront/2025-04/mutations/cartBuyerIdentityUpdate) and set `buyerIdentity.deliveryAddressPreferences` to an empty array. However, `deliveryAddressPreferences` is deprecated. **Action required before API version 2025-10** Review your existing code. Starting with API version 2025-10, setting the `addresses` field of the `cartDeliveryAddressesUpdate` mutation to an empty array (`[]`) clears cart addresses. If you do not want this behavior, update your code.