Anchor to productVariantsBulkDeleteproduct
mutationproduct Variants Bulk Delete
Requires access scope. Also: The user must have a permission to delete product variants.
Deletes multiple variants in a single Product. Specify the product ID and an array of variant IDs to remove variants in bulk. You can call this mutation directly or through the mutation. Returns the updated product and any objects.
Anchor to Arguments
Arguments
- productId (ID!)
- variantsIds ([ID!]!)
- Anchor to productIdproduct•ID!
Id required The ID of the product with the variants to update.
- Anchor to variantsIdsvariants•[ID!]!
Ids required An array of product variants IDs to delete.
Was this section helpful?
- product (Product)
- userErrors ([ProductVariantsBulkDeleteUserError!]!)
- Anchor to productproduct•Product
The updated product object.
- Anchor to userErrorsuser•[Product
Errors Variants Bulk Delete User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?