Skip to main content
Anchor to productVariantDelete

productVariantDelete

mutation

Requires write_products access scope. Also: The user must have a permission to delete a product variant.

Deprecated. Use productVariantsBulkDelete instead. This will be removed in 2024-10.

Deletes a product variant.

•ID!
required

The ID of the product variant to be deleted.


Was this section helpful?

Anchor to ProductVariantDeletePayload returnsProductVariantDeletePayload returns

Anchor to deletedProductVariantIddeletedProductVariantId
•ID

The ID of the deleted product variant.

•Product

The product associated with the deleted product variant.

•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?