Can I bulk delete products with Bulk Mutation API?

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?

1 Like

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

@csam

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

1 Like

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.

2 Likes

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