---
title: metafieldDelete - Shop Users API
description: Remove a Metafield corresponding to a definition from a user.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-users/latest/mutations/metafieldDelete
  md: https://shopify.dev/docs/api/shop-users/latest/mutations/metafieldDelete.md
---

# metafield​Delete

mutation

Remove a Metafield corresponding to a definition from a user.

## Arguments

* identifier

  [Custom​Data​Key​Pair​Input!](https://shopify.dev/docs/api/shop-users/latest/input-objects/CustomDataKeyPairInput)

  required

  Key and namespace pair that together form the path to the definition. Key is required, Namespace defaults to the Client's implicit, reserved namespace if not provided

***

## Metafield​Delete​Payload returns

* deleted​Metafield

  [Metafield](https://shopify.dev/docs/api/shop-users/latest/objects/Metafield)

* user​Errors

  [\[User​Error!\]!](https://shopify.dev/docs/api/shop-users/latest/objects/UserError)

  non-null

  List of errors that occured while executing the mutation.

***

## Examples

* ### metafieldDelete reference