Anchor to productOptionsDeleteproduct
mutationproduct Options Delete
Requires access scope. Also: The user must have a permission to edit products and delete product variants.
Deletes the specified options.
Anchor to Arguments
Arguments
- Anchor to optionsoptions•[ID!]!required
IDs of the options to delete from the product.
- Anchor to productIdproduct•ID!required
Id ID of the product from which to delete the options.
- Anchor to strategystrategy•Product
Option Delete StrategyDefault:DEFAULT The strategy defines which behavior the mutation should observe,such as how to handle a situation where deleting an option would result in duplicate variants.
Was this section helpful?
- Anchor to deletedOptionsIdsdeleted•[ID!]
Options Ids IDs of the options deleted.
- Anchor to productproduct•Product
The updated product object.
- Anchor to userErrorsuser•[Product
Errors Options Delete User Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?