---
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-10
source_url:
  html: 'https://shopify.dev/docs/api/storefront/latest/mutations/cartMetafieldDelete'
  md: >-
    https://shopify.dev/docs/api/storefront/latest/mutations/cartMetafieldDelete.md
api_name: storefront
api_type: graphql
type: mutation
---

# cart​Metafield​Delete

mutation

Deletes a cart metafield.

***

**Note:** This mutation won\&#39;t trigger \<a href="https://shopify.dev/docs/api/functions">Shopify Functions\</a>. The changes won\&#39;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
