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

# deleteWarehouse Mutation

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
deleteWarehouse(
  id: ID!
): WarehouseDelete
```

Details

```graphql
type WarehouseDelete {
  warehouseErrors: [WarehouseError!]! @deprecated
  errors: [WarehouseError!]!
  warehouse: Warehouse
}
```

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

### Arguments

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

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

ID of a warehouse to delete.

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

### Type

<a id="warehousedelete"></a>

#### [`WarehouseDelete`](/api-reference/products/objects/warehouse-delete.md)

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.
