---
title: metafieldAccessRevoke - Shop Partners API
description: |-
  Revoke shared access between a Metafield Primitive and a Client or Namespace for Primitives of which your
  Client is an Admin.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-partners/latest/mutations/metafieldAccessRevoke
  md: https://shopify.dev/docs/api/shop-partners/latest/mutations/metafieldAccessRevoke.md
---

# metafield​Access​Revoke

mutation

Revoke shared access between a Metafield Primitive and a Client or Namespace for Primitives of which your Client is an Admin.

## Arguments

* identifier

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

  required

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

* targets

  [\[Target​Input!\]!](https://shopify.dev/docs/api/shop-partners/latest/input-objects/TargetInput)

  required

  A list of targets for whom to revoke access from the given resource.

***

## Metafield​Access​Revoke​Payload returns

* 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.

***

## Examples

* ### metafieldAccessRevoke reference