--- title: cartMetafieldDelete - Storefront API description: > Deletes a cart metafield. > Note: > This mutation won't trigger [Shopify Functions](https://shopify.dev/docs/api/functions). The changes won't be available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions. api_version: 2026-01 api_name: storefront type: mutation api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/latest/mutations/cartMetafieldDelete' md: >- https://shopify.dev/docs/api/storefront/latest/mutations/cartMetafieldDelete.md --- # cart​Metafield​Delete mutation Deletes a cart metafield. *** **Note:** This mutation won\'t trigger \Shopify Functions\. The changes won\'t be available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions. *** ## Arguments * input [Cart​Metafield​Delete​Input!](https://shopify.dev/docs/api/storefront/latest/input-objects/CartMetafieldDeleteInput) required The input fields used to delete a cart metafield. *** ## Cart​Metafield​Delete​Payload returns * deleted​Id [ID](https://shopify.dev/docs/api/storefront/latest/scalars/ID) The ID of the deleted cart metafield. * user​Errors [\[Metafield​Delete​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/MetafieldDeleteUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### cartMetafieldDelete reference