---
title: MetafieldNamespaceDeletePayload - Shop Partners API
description: Return type for the `metafieldNamespaceDelete` mutation.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-partners/latest/payloads/MetafieldNamespaceDeletePayload
  md: https://shopify.dev/docs/api/shop-partners/latest/payloads/MetafieldNamespaceDeletePayload.md
---

# Metafield​Namespace​Delete​Payload

payload

Return type for the `metafieldNamespaceDelete` mutation.

## Fields

* deleted​Namespace

  [Metafield​Namespace](https://shopify.dev/docs/api/shop-partners/latest/objects/MetafieldNamespace)

* user​Errors

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

  non-null

  List of errors that occured while executing the mutation.

***

## Mutations with this payload

* [metafield​Namespace​Delete](https://shopify.dev/docs/api/shop-partners/latest/mutations/metafieldNamespaceDelete)

  mutation

  Destroy a Namespace and remove any shared Access. MetafieldDefinitions shared to the Namespace will not be deleted, but their association with the namespace will be removed.

  * identifier

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

    required

    ### Arguments

    This argument accepts an object that consists of a `key` and an optional `namespace`. The `key` is a mandatory attribute that represents a specific element within a namespace. The `namespace` attribute, if provided, should be a period-delimited string representing the hierarchical path to the desired namespace. This is applicable in cases where the desired namespace is nested within other namespaces. In the absence of a provided `namespace`, the system will default to the client's implicit, reserved namespace.

  ***

***

## Map

### Mutations with this payload

* [metafield​Namespace​Delete](https://shopify.dev/docs/api/shop-partners/latest/mutations/metafieldNamespaceDelete)