metafieldStorefrontVisibilityDelete mutation
Deletes a Metafield Storefront Visibility.
On this page
Interactive example
This is an example mutation query.
mutation metafieldStorefrontVisibilityDelete($id: ID!) { metafieldStorefrontVisibilityDelete(id: $id) {} } { “id”: “Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=” }
<font style="color:#1F61A0;">deletedMetafieldStorefrontVisibilityId</font><font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font><font style="color:#1F61A0;">field</font><font style="color:#1F61A0;">message</font><font style="color:#555555;">}</font>
Arguments
| Argument | Description |
|---|---|
id( [ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)) REQUIRED |
The ID of the metafield storefront visibility to delete. |
Return fields
- deletedMetafieldStorefrontVisibilityId (
[ID](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
The ID of the deleted metafield storefront visibility. - userErrors (
[[UserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/usererror))
List of errors that occurred executing the mutation.
