---
title: MetafieldsDeleteUserError - Customer API
description: An error that occurs during the execution of `MetafieldsDelete`.
api_version: 2026-01
api_name: customer
type: object
api_type: graphql
source_url:
  html: >-
    https://shopify.dev/docs/api/customer/latest/objects/MetafieldsDeleteUserError
  md: >-
    https://shopify.dev/docs/api/customer/latest/objects/MetafieldsDeleteUserError.md
---

# Metafields​Delete​User​Error

object

An error that occurs during the execution of `MetafieldsDelete`.

## Fields

* code

  [Metafields​Delete​User​Error​Code](https://shopify.dev/docs/api/customer/latest/enums/MetafieldsDeleteUserErrorCode)

  The error code.

* element​Index

  [Int](https://shopify.dev/docs/api/customer/latest/scalars/Int)

  The index of the array element that's causing the error.

* field

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

  The path to the input field that caused the error.

* message

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

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

* [metafields​Delete](https://shopify.dev/docs/api/customer/latest/mutations/metafieldsDelete)

  mutation

  Deletes multiple metafields in bulk.

  * metafields

    [\[Metafield​Identifier​Input!\]!](https://shopify.dev/docs/api/customer/latest/input-objects/MetafieldIdentifierInput)

    required

    ### Arguments

    A list of identifiers specifying metafields to delete. At least one identifier must be specified.

  ***

***

## MetafieldsDeleteUserError Mutations

### Mutated by

* [metafields​Delete](https://shopify.dev/docs/api/customer/latest/mutations/metafieldsDelete)

***

## Interfaces

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

  interface

***

## MetafieldsDeleteUserError Implements

### Implements

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