DeleteById
Magento\Inventory\Model\Stock\Command\DeleteById
What it does
This class handles the deletion of inventory stock records by their ID in Magento's Multi-Source Inventory (MSI) system.
Developers would use this when programmatically removing a stock assignment, such as during cleanup operations or when decommissioning a warehouse.
It validates the stock exists before deletion and throws appropriate exceptions if the stock is not found or deletion fails.
Public Methods
- execute()