Skip to main content
Anchor to productVariantsBulkDelete

productVariantsBulkDelete

mutation

Requires write_products 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 bulkOperationRunMutation mutation. Returns the updated product and any UserError objects.

•ID!
required

The ID of the product with the variants to update.

•[ID!]!
required

An array of product variants IDs to delete.


Was this section helpful?

Anchor to ProductVariantsBulkDeletePayload returnsProductVariantsBulkDeletePayload returns

•Product

The updated product object.

•[ProductVariantsBulkDeleteUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?