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

# WarehouseDelete Object

Deletes selected warehouse.

Requires the MANAGE\_PRODUCTS permission.

Triggers the following webhook events:

-   WAREHOUSE\_DELETED (async): A warehouse is deleted.
-   PRODUCT\_VARIANT\_OUT\_OF\_STOCK (async): A product variant stock is removed together with the deleted 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
type WarehouseDelete {
  warehouseErrors: [WarehouseError!]! @deprecated
  errors: [WarehouseError!]!
  warehouse: Warehouse
}
```

<a id="fields"></a>

### Fields

<a id="errors"></a>

#### [`errors`](#errors) ● [`[WarehouseError!]!`](/api-reference/products/objects/warehouse-error.md)

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

#### [`warehouse`](#warehouse) ● [`Warehouse`](/api-reference/products/objects/warehouse.md)

Show deprecatedHide deprecated

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

#### [`warehouseErrors`](#warehouse-errors) ● [`[WarehouseError!]!`](/api-reference/products/objects/warehouse-error.md)

DEPRECATED

Use `errors` field instead.

<a id="returned-by"></a>

### Returned By

[`deleteWarehouse`](/api-reference/products/mutations/delete-warehouse.md) mutation
