# Delete a taxonomy

`DELETE https://api.cademi.com.br/api/v3/products/{product_id}/taxonomies/{taxonomy_id}`

Operation ID: `taxonomies.delete` · API v3

Moves the taxonomy and all of its terms to the trash. The terms are also removed from every lesson they were assigned to.

Send the `ETag` returned by the retrieve operation in the `If-Match` header to avoid deleting a taxonomy that has changed since it was retrieved.

Taxonomies of replicated products are read-only and cannot be deleted. Attempts to delete them return `403 Forbidden` with the `replica_readonly` error code.

Required permissions: `taxonomies.delete`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `taxonomy_id` | path | string | yes |  |

## Responses

### 204

The taxonomy was deleted successfully.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The taxonomy was not found in this product or is not accessible with the current credentials.

Body: Error.

### 412

The resource has changed since the supplied revision was retrieved.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
