# Category deletion

URL: https://shoptet.dev/news/api/category-deletion

November 22, 2021 · One min read
Pavel Husa

There is a new endpoint available in our API: [Product category deletion](https://api.docs.shoptet.com/shoptet-api/openapi/categories/deleteproductcategory) . Optionally you can also delete product assignments if the category is not empty (parameter `deleteUsed=true` ) and its subcategories (parameter `deleteChildren=true` ). If the category in not empty or it has sub-categories and no parameter is provided, the request fails with status code `409` .

**Tags:**
- [API](/news/tags/api/)
