---
title: MetafieldsDeleteUserErrorCode - Customer API
description: Possible error codes that can be returned by `MetafieldsDeleteUserError`.
api_version: 2026-01
api_name: customer
type: enum
api_type: graphql
source_url:
  html: >-
    https://shopify.dev/docs/api/customer/latest/enums/MetafieldsDeleteUserErrorCode
  md: >-
    https://shopify.dev/docs/api/customer/latest/enums/MetafieldsDeleteUserErrorCode.md
---

# Metafields​Delete​User​Error​Code

enum

Possible error codes that can be returned by `MetafieldsDeleteUserError`.

## Valid values

* BLANK

  The input value is blank.

* DISALLOWED\_​OWNER\_​TYPE

  Owner type can't be used in this mutation.

* INVALID

  The input value is invalid.

* METAFIELD\_​DELETE\_​FAILED

  The metafield delete operation failed.

* NOT\_​FOUND

  The record with the ID used as the input value couldn't be found.

***

## Fields

* [Metafields​Delete​User​Error.code](https://shopify.dev/docs/api/customer/latest/objects/MetafieldsDeleteUserError#field-MetafieldsDeleteUserError.fields.code)

  OBJECT

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

***

## Map

### Fields with this enum

* [Metafields​Delete​User​Error.code](https://shopify.dev/docs/api/customer/latest/objects/MetafieldsDeleteUserError#field-MetafieldsDeleteUserError.fields.code)
