- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateInventoryLevelsDelete - Medusa Core Workflows Reference
This documentation provides a reference to the validateInventoryLevelsDelete
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that inventory levels are deletable. If the inventory levels have reserved or incoming items, or the force flag is not set and the inventory levels have stocked items, the step will throw an error.
Example#
Input#
ValidateInventoryLevelsDeleteStepInput
ValidateInventoryLevelsDeleteStepInputThe data to validate the deletion of inventory levels.
ValidateInventoryLevelsDeleteStepInput
ValidateInventoryLevelsDeleteStepInputinventoryLevels
InventoryLevelDTO[]The inventory levels to validate.
inventoryLevels
InventoryLevelDTO[]force
booleanOptionalIf true, the inventory levels will be deleted even if they have stocked items.
force
booleanOptionalWas this page helpful?