---
title: "Delete an OAuth client registration"
method: DELETE
path: "/workspaces/{workspace_id}/oauth-clients/{oauth_client_id}"
tags: ["OAuth Client"]
---

# Delete an OAuth client registration

`DELETE /workspaces/{workspace_id}/oauth-clients/{oauth_client_id}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/oauth-clients/{oauth_client_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Deletes the client registration and every connection users made to it, so its tokens stop working.

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
- `oauth_client_id` integer, required: ID of the OAuth client

## Response `204`

Successful delete

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `403`: Request forbidden -- authorization will not help
- `404`: Not found

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
