Skip to main content
Anchor to MetafieldDefinitionDeletePayload

MetafieldDefinitionDeletePayload

payload

Return type for metafieldDefinitionDelete mutation.

•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?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Deletes a MetafieldDefinition. You can identify the definition by providing either its owner type, namespace, and key, or its global ID.

When you set deleteAllAssociatedMetafields to true, the mutation asynchronously deletes all Metafield objects that use this definition. This option must be true when deleting definitions under the $app namespace.

Learn more about deleting metafield definitions.


Was this section helpful?