Log in
Model

BulkSourceUnassign

Magento\InventoryCatalog\Model\ResourceModel\BulkSourceUnassign

What it does

This class handles the bulk removal of source assignments from products in Magento's Multi-Source Inventory (MSI) system.

Developers use this when they need to unassign inventory sources from multiple products at once, such as when closing a warehouse or reorganizing inventory sources.

It also updates legacy stock items when the default source is unassigned.

Public Methods

  • execute()