--- title: MetafieldsDeleteUserError - Customer API description: An error that occurs during the execution of `MetafieldsDelete`. api_version: 2025-01 api_name: customer type: object api_type: graphql source_url: html: >- https://shopify.dev/docs/api/customer/2025-01/objects/MetafieldsDeleteUserError md: >- https://shopify.dev/docs/api/customer/2025-01/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/2025-01/enums/MetafieldsDeleteUserErrorCode) The error code. * element​Index [Int](https://shopify.dev/docs/api/customer/2025-01/scalars/Int) The index of the array element that's causing the error. * field [\[String!\]](https://shopify.dev/docs/api/customer/2025-01/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/customer/2025-01/scalars/String) non-null The error message. *** ## Map No referencing types *** ## Mutations * [metafields​Delete](https://shopify.dev/docs/api/customer/2025-01/mutations/metafieldsDelete) mutation Deletes multiple metafields in bulk. *** ## <\~> MetafieldsDeleteUserError Mutations ### Mutated by * <\~>[metafields​Delete](https://shopify.dev/docs/api/customer/2025-01/mutations/metafieldsDelete) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/customer/2025-01/interfaces/DisplayableError) interface *** ## ||-MetafieldsDeleteUserError Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/customer/2025-01/interfaces/DisplayableError)