Skip to main content

productVariantDelete Mutation

Deletes a product variant.

Requires the MANAGE_PRODUCTSpermission.
productVariantDelete(
externalReference: String
id: ID
sku: String
): ProductVariantDelete
Details
type ProductVariantDelete {
productErrors: [ProductError!]! @deprecated
errors: [ProductError!]!
productVariant: ProductVariant
}

Arguments​

externalReference ● String​

External ID of a product variant to update.

id ● ID​

ID of a product variant to delete.

sku ● String​

SKU of a product variant to delete.

Type​

ProductVariantDelete​

Deletes a product variant.

Requires the MANAGE_PRODUCTSpermission.