---
title: MetafieldDeleteErrorCode - Storefront API
description: Possible error codes that can be returned by `MetafieldDeleteUserError`.
api_version: 2025-07
api_name: storefront
type: enum
api_type: graphql
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/2025-07/enums/MetafieldDeleteErrorCode
  md: >-
    https://shopify.dev/docs/api/storefront/2025-07/enums/MetafieldDeleteErrorCode.md
---

# Metafield​Delete​Error​Code

enum

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

## Valid values

* APP\_​NOT\_​AUTHORIZED

  The current app is not authorized to perform this action.

* INVALID\_​OWNER

  The owner ID is invalid.

* METAFIELD\_​DOES\_​NOT\_​EXIST

  Metafield not found.

***

## Fields

* [Metafield​Delete​User​Error.code](https://shopify.dev/docs/api/storefront/2025-07/objects/MetafieldDeleteUserError#field-MetafieldDeleteUserError.fields.code)

  OBJECT

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

***

## Map

### Fields with this enum

* [Metafield​Delete​User​Error.code](https://shopify.dev/docs/api/storefront/2025-07/objects/MetafieldDeleteUserError#field-MetafieldDeleteUserError.fields.code)
