---
title: MetafieldDeleteUserError - Storefront API
description: An error that occurs during the execution of cart metafield deletion.
api_version: 2026-07
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/objects/MetafieldDeleteUserError
  md: >-
    https://shopify.dev/docs/api/storefront/latest/objects/MetafieldDeleteUserError.md
api_name: storefront
api_type: graphql
type: object
---

# Metafield​Delete​User​Error

object

An error that occurs during the execution of cart metafield deletion.

## Fields

* code

  [Metafield​Delete​Error​Code](https://shopify.dev/docs/api/storefront/latest/enums/MetafieldDeleteErrorCode)

  The error code.

* field

  [\[String!\]](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  The path to the input field that caused the error.

* message

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

* [cart​Metafield​Delete](https://shopify.dev/docs/api/storefront/latest/mutations/cartMetafieldDelete)

  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.

  ***

  * input

    [Cart​Metafield​Delete​Input!](https://shopify.dev/docs/api/storefront/latest/input-objects/CartMetafieldDeleteInput)

    required

    ### Arguments

    The input fields used to delete a cart metafield.

  ***

***

## MetafieldDeleteUserError Mutations

### Mutated by

* [cart​Metafield​Delete](https://shopify.dev/docs/api/storefront/latest/mutations/cartMetafieldDelete)

***

## Interfaces

* [Displayable​Error](https://shopify.dev/docs/api/storefront/latest/interfaces/DisplayableError)

  interface

***

## MetafieldDeleteUserError Implements

### Implements

* [Displayable​Error](https://shopify.dev/docs/api/storefront/latest/interfaces/DisplayableError)
