Skip to main content
mutation

Requires access defined by each metafield input ownerId scalar's type in a MetafieldsSetInput field. For example, setting a metafield on a PRODUCT requires the same access as mutating a PRODUCT.

Deletes Metafield objects in bulk by specifying combinations of owner ID, namespace, and key.

Returns the identifiers of successfully deleted metafields. If a specified metafield doesn't exist, then the mutation still succeeds but returns null for that identifier in the response.

[MetafieldIdentifierInput!]!
required

A list of identifiers specifying metafields to delete. At least one identifier must be specified.


Was this section helpful?

Anchor to MetafieldsDeletePayload returnsMetafieldsDeletePayload returns

[MetafieldIdentifier]

List of metafield identifiers that were deleted, null if the corresponding metafield isn't found.

[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?