> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Delete an OAuth client API Reference

Client deletion (RFC 7592). Send the `registration_access_token` from the registration response as `Authorization: Bearer <token>` to the `registration_client_uri`.

Every grant of the client is revoked: its access and refresh tokens stop working at once, its unused codes too, and it leaves every user's Connected apps. The `client_id` stops working.

A client registered before registration access tokens existed has none and cannot be deleted here.


## DELETE /oauth/register/{clientId}

**Delete an OAuth client**

Client deletion (RFC 7592). Send the `registration_access_token` from the registration response as `Authorization: Bearer <token>` to the `registration_client_uri`.

Every grant of the client is revoked: its access and refresh tokens stop working at once, its unused codes too, and it leaves every user's Connected apps. The `client_id` stops working.

A client registered before registration access tokens existed has none and cannot be deleted here.


### Parameters

- **clientId** (required) in path: The `client_id`, starting with late_cid_.

### Responses

#### 204: Deleted.

#### 401: `invalid_request` without a Bearer token; `invalid_token` for a wrong token, an unknown or already deleted client, or one without a registration access token.

**Response Body:**

- **error** (required) `string`: invalid_request, invalid_client, invalid_grant, invalid_scope, invalid_target, unsupported_grant_type, invalid_client_metadata, invalid_redirect_uri, invalid_token, too_many_requests or server_error.
- **error_description** `string`: Human-readable detail.

---


# Related Schema Definitions

## OAuthError

Error body of the OAuth endpoints (RFC 6749 section 5.2).

### Properties

- **error** (required) `string`: invalid_request, invalid_client, invalid_grant, invalid_scope, invalid_target, unsupported_grant_type, invalid_client_metadata, invalid_redirect_uri, invalid_token, too_many_requests or server_error.
- **error_description** `string`: Human-readable detail.