# Disconnect a lesson

`DELETE https://api.cademi.com.br/api/v3/products/{product_id}/lessons/{lesson_id}/connection`

Operation ID: `lessons.connection.delete` · API v3

Disconnects the lesson from its source lesson, so it no longer mirrors that lesson's content.

If the lesson is not connected, the request fails with `state_conflict`. Replicated lessons are read-only, and requests to change them return `replica_readonly`.

Required permissions: `lessons.connect`.

## Parameters

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

## Responses

### 204

The lesson was disconnected from its source lesson.

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

Body: Error.

### 409

The lesson is not connected to a source lesson.

Body: Error.

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