The Collection deleted trigger starts a workflow when a user in your organization or a third-party app deletes a collection from the Shopify admin. Workflows that start with the Collection deleted trigger apply to both manual and automatic collections.
The following actions can be used in workflows that start with the Collection 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 a collection is deleted.
Testing the Collection deleted trigger
To test a workflow that starts with this trigger, delete a collection.
The Collection deleted trigger allows actions to be taken with the Collection Graphql API object.
Deleted objects are not available in the API. The collection ID is the only detail you can get when a collection is deleted. Other details are not available.