Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

productVariantStocksDelete Mutation

Deletes stocks from product variant.

Requires one of the following permissions:MANAGE_PRODUCTS

Triggers the following webhook events:

  • PRODUCT_VARIANT_OUT_OF_STOCK (async): A product variant stock is deleted from a warehouse.
  • PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL (async): A product variant is out of stock in a channel (non click-and-collect warehouses).

Note: Triggered only when the useLegacyShippingZoneStockAvailability shop setting is disabled.

  • PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is out of stock in a channel (click-and-collect warehouses).

Note: Triggered only when the useLegacyShippingZoneStockAvailability shop setting is disabled.

Applied directives

@webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_OUT_OF_STOCK, PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL, PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: [])
productVariantStocksDelete(sku: String, variantId: ID, warehouseIds: [ID!]): ProductVariantStocksDelete

Returns

ProductVariantStocksDelete

Show return type
type ProductVariantStocksDelete {
  productVariant: ProductVariant
  stockErrors: [StockError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [StockError!]!
}

Arguments

sku

sku · String

SKU of product variant for which stocks will be deleted.

variantId

variantId · ID

ID of product variant for which stocks will be deleted.

warehouseIds

warehouseIds · [ID!]

Input list of warehouse IDs.


Schema: Saleor 3.23.43. Download SDL.

Last updated on August 10, 2026

Was this page helpful?