# Delete a certificate

`DELETE https://api.cademi.com.br/api/v3/users/{user_id}/certificates/{certificate_id}`

Operation ID: `certificates.delete` · API v3

Moves the certificate to the trash. A `reason` is required.

Deleted certificates no longer appear in the user's certificate list and can no longer be verified through public validation. To invalidate a certificate while keeping it on record, revoke it through the update operation instead.

Required permissions: `certificates.delete`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `user_id` | path | string | yes |  |
| `certificate_id` | path | string | yes |  |

## Request body

Content type: `application/json`, required.

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

## Responses

### 204

The certificate 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 certificate was not found, does not belong to the specified user, or is not accessible with the current credentials.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

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