--- title: MetafieldDeleteErrorCode - Storefront API description: Possible error codes that can be returned by `MetafieldDeleteUserError`. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/enums/MetafieldDeleteErrorCode md: https://shopify.dev/docs/api/storefront/unstable/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/unstable/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/unstable/objects/MetafieldDeleteUserError#field-MetafieldDeleteUserError.fields.code)