Hi There!
Is it a manual or smart collection? If manual, you can select in batch on the Products page and do the following:
Let me know!
Hey @GrantDB,
Check out the collectionRemoveProducts mutation for this! Hope that helps.
Callum | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
I need to use the api and I need to loop through the products to delete them using collectionRemoveProducts. There isn't the ability to delete the products through say a wildcard, delete all, leaving the empty collection in place.
Using collectionRemoveProducts will be OK for me, as the collection will only have 100 or so items, I should poll the job to see when it has finished, as mentioned in the docs
Thanks
Grant
Not sure I understand what the question is.
https://shopify.dev/docs/admin-api/graphql/reference/mutation/collectionremoveproducts
The response for the request is a job id that should be polled
User | Count |
---|---|
28 | |
7 | |
7 | |
6 | |
4 |