--- title: MetafieldsDeleteUserError - Customer API description: An error that occurs during the execution of `MetafieldsDelete`. api_version: 2025-10 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. *** ## <\~> 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)