--- title: MetafieldDeleteUserError - Storefront API description: An error that occurs during the execution of cart metafield deletion. api_version: 2025-10 api_name: storefront type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/objects/metafielddeleteusererror md: https://shopify.dev/docs/api/storefront/latest/objects/metafielddeleteusererror.md --- # 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. *** ## <\~> 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)