metafield Definition Delete
Requires API client to have access to the resource type associated with the metafield definition.
Deletes a . You can identify the definition by providing either its owner type, namespace, and key, or its global ID.
When you set 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.
Arguments
- Anchor to deleteAllAssociatedMetafieldsdelete•Boolean
All Associated Metafields Default:false Whether to delete all associated metafields.
- •ID
The id of the metafield definition to delete. Using
identifieris preferred.- Anchor to identifieridentifier•Metafield
Definition Identifier Input The identifier of the metafield definition to delete.
- Anchor to deletedDefinitiondeleted•Metafield
Definition Definition Identifier The metafield definition that was deleted.
- Anchor to deletedDefinitionIddeleted•ID
Definition Id The ID of the deleted metafield definition.
- Anchor to userErrorsuser•[Metafield
Errors Definition Delete User Error!]! non-null The list of errors that occurred from executing the mutation.