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.
- Add shop metafield
- Create redirect URL
- Delete redirect URLs
- Remove shop metafield
- Send email
- Send HTTP request
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.