# Delete a module

`DELETE https://api.cademi.com.br/api/v3/products/{product_id}/modules/{module_id}`

Operation ID: `modules.delete` · API v3

Moves the module to the trash, together with its submodules and lessons. Copies of the module in replicated accounts are also moved to the trash.

Restoring the module through the update operation does not restore those copies.

Replicated modules cannot be deleted. Attempts to delete them return the `replica_readonly` error code.

Required permissions: `modules.delete`.

## Parameters

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

## Responses

### 204

The module was moved to the trash.

### 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 module was not found in the specified product or is not accessible with the current credentials.

Body: Error.

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