How to delete product in bulk just in one api call

Solved
zhagan
Excursionist
16 1 0

 Hi,

Can I delete more than one products in one api call ?

in API document ,the demo can only delete one product at a time.

DELETE /admin/api/2021-04/products/632910392.json

 

0 Likes
Flafi87
Tourist
7 1 2

This is an accepted solution.

Hello,

As far as I know with REST API it is not possible to make bulk delete. I would definitely just loop throught the products that should be deleted

With GraphQL there is a bulkOperationRunMutation mutation in the July release candidate API.

0 Likes