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

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

deleteWarehouse Mutation

Deletes selected warehouse.

Requires one of the following permissions:MANAGE_PRODUCTS

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.

Applied directives

@webhookEventsInfo(asyncEvents: [WAREHOUSE_DELETED, PRODUCT_VARIANT_OUT_OF_STOCK, PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL, PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: [])
deleteWarehouse(id: ID!): WarehouseDelete

Returns

WarehouseDelete

Show return type
type WarehouseDelete {
  warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [WarehouseError!]!
  warehouse: Warehouse
}

Arguments

id

id · ID!

ID of a warehouse to delete.


Schema: Saleor 3.23.43. Download SDL.

Last updated on August 10, 2026

Was this page helpful?