---
title: "Deregister an OAuth client"
method: DELETE
path: "/oauth/clients/{client_id}"
tags: ["oauth"]
---

# Deregister an OAuth client

`DELETE /oauth/clients/{client_id}`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/oauth/clients/{client_id}`
- Auth: API key in header `Authorization`

Disables a registered client: every subsequent /authorize and /token for this `client_id` fails as though it had never been registered. The row is retained for audit. Already-disabled and never-existed both answer 404. Does NOT revoke tokens the client already holds — those are ordinary enforcer tokens with their own expiry. Platform admin only.

## Path parameters

- `client_id` string, required

## Response `200`

OK

- InternalDeliveryHttpHandlerMessageResponse
  - `message` string
  - `success` boolean

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
