Skip to main content
Anchor to MetafieldDefinitionIdentifier

MetafieldDefinitionIdentifier

object

Identifies a metafield definition by its owner type, namespace, and key.

•String!non-null

The unique identifier for the metafield definition within its namespace.

•String!non-null

The container for a group of metafields that the metafield definition is associated with.

•MetafieldOwnerType!non-null

The resource type that the metafield definition is attached to.


Was this section helpful?

•mutation

Delete a metafield definition. Optionally deletes all associated metafields asynchronously when specified.

Arguments

Anchor to deleteAllAssociatedMetafieldsdeleteAllAssociatedMetafields
•BooleanDefault:false

Whether to delete all associated metafields.

•ID

The id of the metafield definition to delete. Using identifier is preferred.

•MetafieldDefinitionIdentifierInput

The identifier of the metafield definition to delete.


Fields

•MetafieldDefinitionIdentifier

The metafield definition that was deleted.

•ID

The ID of the deleted metafield definition.

•[MetafieldDefinitionDeleteUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?