Skip to main content

WarehouseDelete Object

Deletes selected warehouse.

Requires the MANAGE_PRODUCTSpermission.

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.

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

Fields

errors ● [WarehouseError!]!

warehouse ● Warehouse

Show deprecatedHide deprecated

warehouseErrors ● [WarehouseError!]!

DEPRECATED

Use errors field instead.

Returned By

deleteWarehouse mutation