# Delete an administrator

`DELETE https://api.cademi.com.br/api/v3/administrators/{administrator_id}`

Operation ID: `administrators.delete` · API v3

Moves the administrator to the trash. A trashed administrator can be restored with the update operation by setting `deleted` to `false`.

The last `root` administrator in the account cannot be deleted, and administrators cannot delete themselves. Administrators with the `root` or `master_admin` role cannot be deleted through the API; attempts return `delegation_limit_exceeded`.

API credentials created by the deleted administrator are not revoked.

Required permissions: `administrators.delete`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `administrator_id` | path | string | yes |  |

## Responses

### 204

The administrator 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 administrator was not found or is not accessible with the current credentials.

Body: Error.

### 409

The administrator cannot be deleted because it is the last root administrator in the account or the administrator making the request.

Body: Error.

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