# Revoke a key

URL: https://docs.lastscanned.com/reference/account/revokeKey

`DELETE https://api.lastscanned.com/v1/keys/{prefix}`

Parameters:
- `prefix` (path, required): `lsk_live_` + the key's first 8 hex characters.

Responses:
- 200: Revoked.
- 401: `unauthorized`: missing, wrong or revoked key, or a disabled account.
- 404: `not_found`: the carrier has no record of the number, or no such key.

```json
{
  "revoked": "lsk_live_1a2b3c4d"
}
```

Full spec: https://docs.lastscanned.com/openapi.yaml