# Product category deletion Deletes product category as per entered . If successful, returns the code 200. If the category does not exist within the e-shop, a 404 code is returned. If the category cannot be deleted, because it is used by some product or has children, a 409 code is returned. Optional parameter allows deleting categories used by products. The products are marked as changed. Optional parameter allows deleting categories with child categories. The children are deleted too. Endpoint: DELETE /api/categories/{categoryGuid} Version: 1.0.0 Security: shoptetAccessToken, shoptetPrivateApiToken ## Path parameters: - `categoryGuid` (string, required) Category guid Example: "5c499200-70ac-11e9-9208-08002774f818" ## Query parameters: - `deleteUsed` (boolean) Allows deleting categories used by products if set to Example: true - `deleteChildren` (boolean) Allows deleting categories with children if set to Example: true ## Header parameters: - `Content-Type` (string, required) ## Response 200 fields (application/json): - `data` (object,null, required) - `errors` (array,null, required) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced ## Response 404 fields (application/json): - `data` (object,null) - `errors` (array,null) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced ## Response 409 fields (application/json): - `data` (object,null) - `errors` (array,null) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced