Inventory item deleted
The Inventory item deleted trigger starts a workflow when an inventory item attached to a product variant is deleted.
The following actions can be used in workflows that start with the Inventory item deleted trigger.
- Create redirect URL
- Delete redirect URLs
- Remove shop metafield
- Send HTTP request
- Send internal email
- Update shop metafield
In this example workflow, an email is sent when an inventory item is deleted.
Testing the Inventory item deleted trigger
To test a workflow that starts with this trigger, delete a variant from an existing product.
The Inventory item deleted trigger allows actions to be taken with the InventoryItem Graphql API object.
Deleted objects are not available in the API. The inventory item ID is the only detail you can get when an inventory item is deleted. Other details are not available.