Skip to content

delete category

How can I delete a product from category using API?

I tried with:
rest/V1/categories/&{category_id}/products/&{sku}

and usually works fine.

But sometimes I get err msg:
“The category doesn’t contain the specified product.”

I tried POST with the new category links list, but failed.

What can I do?