> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/products/llms.txt)
> Source: https://docs.saleor.io/api-reference/products/mutations/product-variant-stocks-delete

# productVariantStocksDelete Mutation

Deletes stocks from product variant.

Requires the MANAGE\_PRODUCTS permission.

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.

```graphql
productVariantStocksDelete(
  sku: String
  variantId: ID
  warehouseIds: [ID!]
): ProductVariantStocksDelete
```

Details

```graphql
type ProductVariantStocksDelete {
  productVariant: ProductVariant
  stockErrors: [StockError!]! @deprecated
  errors: [StockError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="sku"></a>

#### [`sku`](#sku) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

SKU of product variant for which stocks will be deleted.

<a id="variant-id"></a>

#### [`variantId`](#variant-id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

ID of product variant for which stocks will be deleted.

<a id="warehouse-ids"></a>

#### [`warehouseIds`](#warehouse-ids) ● [`[ID!]`](/api-reference/miscellaneous/scalars/id.md)

Input list of warehouse IDs.

<a id="type"></a>

### Type

<a id="productvariantstocksdelete"></a>

#### [`ProductVariantStocksDelete`](/api-reference/products/objects/product-variant-stocks-delete.md)

Deletes stocks from product variant.

Requires the MANAGE\_PRODUCTS permission.

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.
