# Delete an exam result

`DELETE https://api.cademi.com.br/api/v3/products/{product_id}/exams/{exam_id}/results/{exam_result_id}`

Operation ID: `exams.results.delete` · API v3

Permanently deletes an exam result. A `reason` is required in the request body, and the deletion is recorded with its reason and author.

The lesson that displays the exam is marked as not completed, the points awarded are reversed, and the user's certificate eligibility is recalculated.

Required permissions: `exams.results.delete`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `exam_id` | path | string | yes |  |
| `exam_result_id` | path | string | yes |  |
| `If-Match` | header | string | no |  |

## Request body

Content type: `application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `reason` | string | yes |  |

## Responses

### 204

The result 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 result was not found for the specified exam or is not accessible with the current credentials. Attempts that are still open or were discarded are not results.

Body: Error.

### 412

The result has changed since the supplied revision was retrieved.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

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