Delete variant values
Use the Remove variant mutation to delete a variant value for an option that no longer exists in the catalog.
EXAMPLE-- iPhone 13 Pro no longer comes in color White. Use this mutation to delete the color.
Mutation
mutation removeProductVariantOptionValue($input: RemoveProductVariantOptionValueInput!) {
removeProductVariantOptionValue(input: $input) {
product {
addon
allowMultiplePurchases
defaultVariant {
configuration {
code
hexcode
name {
locale
value
}
}
edition {
code
id
inventory {
editionCode
id
sku
}
}
id
}
}
}
}
Was this page helpful?
Tell us more…
Help us improve our content. Responses are anonymous.
Thanks
We appreciate your feedback!