Can I bulk delete products with Bulk Mutation API?

sillycube
Shopify Partner
555 14 86

According to the 1st July API update

As of July 2021, you can use the BulkOperationRunMutation endpoint, a resilient and performant solution, to move data in bulk into a store in a bulk asynchronously.

Instead of running a GraphQL mutation multiple times, you can run a bulk mutation operation. This is a simple way for you to import all of their data, without being slowed down by throttles.

We currently provide support for the following mutations: * productCreate * collectionCreate * productUpdate * productUpdateMedia * productPageUpdate * productVariantUpdate * metafieldUpsert * priceListFixedPricesAdd * priceListFixedPricesDelete

Can Shopify support bulk delete products?

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview
Replies 4 (4)
csam
Shopify Staff
154 24 25

Hi @sillycube 

You can bulk delete products with the productVariantsBulkDelete mutation, rather than with a Bulk Operation. You can read about this mutation here: 

https://shopify.dev/api/admin/graphql/reference/products-and-collections/productvariantsbulkdelete

 

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

sillycube
Shopify Partner
555 14 86

@csam 

But this mutation can only accept 1 product id and multiple variant ids. I cannot delete multiple products here

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview
JJasperr
Tourist
5 1 1

I am also having this problem. You ever found a solution? I need to bulk update every products with variants but i dont want to do it 1 product by 1 product. 

JJasperr
Tourist
5 1 1

I found this useful one https://shopify.dev/api/usage/bulk-operations/imports. Will definitely help anyone who need to update products in bluk.