- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
deleteInventoryItemWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the deleteInventoryItemWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow deletes one or more inventory items. It's used by the Delete Inventory Item Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to delete inventory items in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
DeleteInventoryItemWorkflowInput
DeleteInventoryItemWorkflowInputThe IDs of the inventory items to delete.
DeleteInventoryItemWorkflowInput
DeleteInventoryItemWorkflowInputDeleteInventoryItemWorkflowInput
string[]The IDs of the inventory items to delete.
DeleteInventoryItemWorkflowInput
string[]Output#
DeleteInventoryItemWorkflowOutput
DeleteInventoryItemWorkflowOutputThe IDs of deleted inventory items.
DeleteInventoryItemWorkflowOutput
DeleteInventoryItemWorkflowOutputDeleteInventoryItemWorkflowOutput
string[]The IDs of deleted inventory items.
DeleteInventoryItemWorkflowOutput
string[]Was this page helpful?