> ## Documentation Index
> Fetch the complete documentation index at: https://docs.timbrix.mx/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete OAuth Application

> ⚠️ SECURITY: Only OWNERS and ADMINS can delete OAuth applications. This action is PERMANENT. All tokens associated with this application will be revoked.

Permanently deletes an OAuth application. Only **OWNERS** and **ADMINS** can delete OAuth applications.

<Warning>
  This action is **PERMANENT** and cannot be undone. All tokens associated with
  this application will be revoked immediately.
</Warning>

## Permissions

Only **OWNERS** and **ADMINS** can delete OAuth applications.

## Path Parameters

| Parameter  | Type   | Required | Description                 |
| ---------- | ------ | -------- | --------------------------- |
| `clientId` | string | Yes      | OAuth application client ID |

## Example Request

```bash theme={null}
curl -X DELETE http://localhost:3001/api/oauth/apps/app_1234567890abcdef \
  -H "Authorization: Bearer <token>"
```

## Response

Returns `204 No Content` on success.

## What Happens

* OAuth application is permanently deleted
* All access tokens and refresh tokens are revoked
* All active sessions using this app will fail
* This action cannot be undone

## Common Errors

### 401 Unauthorized

Authentication required.

### 403 Forbidden

Only owners and admins can delete OAuth applications.

### 404 Not Found

OAuth application not found with the provided client ID.


## OpenAPI

````yaml DELETE /oauth/apps/{clientId}
openapi: 3.1.0
info:
  title: Timbrix API
  description: >-
    REST API with OAuth2 server for managing organizations, members, and
    webhooks
  version: '1.0'
  contact: {}
servers:
  - url: http://sandbox.mintlify.com
    description: Sandbox environment
  - url: http://localhost:3001/api
    description: Local development
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
paths:
  /oauth/apps/{clientId}:
    delete:
      tags:
        - oauth
      summary: Delete OAuth application
      description: >-
        ⚠️ SECURITY: Only OWNERS and ADMINS can delete OAuth applications. This
        action is PERMANENT. All tokens associated with this application will be
        revoked.
      operationId: OAuthController_deleteApp
      parameters:
        - name: clientId
          required: true
          in: path
          schema:
            type: string
      responses:
        '204':
          description: >-
            Application deleted successfully. All associated tokens have been
            revoked.
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. Only owners and admins can delete OAuth applications.
        '404':
          description: OAuth application not found with the provided client ID.
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````