0

I want to delete all product using Rest API in Magento 2.

  • magento2 does not have any api to delete products in mass action.Only have API for delete product one by one using id – Amit Bera Mar 12 at 15:14
  • @AmitBera that's wrong. you can use bulk-actions. you still have to know the IDs, but you don't need a request for each product – Philipp Sander Mar 12 at 15:20
  • Which api point do that.Please give me API point – Amit Bera Mar 13 at 7:29
0

You can delete all products by iterating them and calling the rest DELETE command on /V1/products/:sku

Here is the specific endpoint: https://devdocs.magento.com/redoc/2.3/admin-rest-api.html#operation/catalogProductRepositoryV1DeleteByIdDelete

A list of endpoints can be found here: https://devdocs.magento.com/guides/v2.3/rest/list.html

Integrations don't by default, have this ability though. You have to login and get an access token.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.