Can I bulk delete products with Bulk Mutation API?

Can I bulk delete products with Bulk Mutation API?

jam_chan
Shopify Partner
920 23 188

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 (Retired)
267 40 51

Hi @jam_chan 

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

 

To learn more visit the Shopify Help Center or the Community Blog.

jam_chan
Shopify Partner
920 23 188

@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 2

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 2

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