Anchor to metafieldStorefrontVisibilityDeletemetafield
metafieldStorefrontVisibilityDelete
mutationDeprecated
Requires API client to have access to the owner type and namespace.
Deletes a record. All metafields that belongs to the specified record will no
longer be visible in the Storefront API. This mutation will be removed in a future version. Use the
mutation with
access.storefront
set instead.
Anchor to MetafieldStorefrontVisibilityDeletePayload returnsMetafieldStorefrontVisibilityDeletePayload returns
- Anchor to deletedMetafieldStorefrontVisibilityIddeleted•
Metafield Storefront Visibility Id The ID of the deleted
record.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation metafieldStorefrontVisibilityDelete($id: ID!) {
metafieldStorefrontVisibilityDelete(id: $id) {
deletedMetafieldStorefrontVisibilityId
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100"
}
{
"id": "gid://shopify/<objectName>/10079785100"
}