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

# Delete an app

> Permanently deletes an OAuth app and all associated data, including active user sessions. This action is irreversible.



## OpenAPI

````yaml /en/api-reference/openapi.json delete /v1/auth/delete-app
openapi: 3.1.0
info:
  title: OAuth 2.1
  description: Endpoints for registering applications and managing OAuth 2.1 tokens.
  version: 1.0.0
  contact:
    name: Vendaze Support
    email: suporte@vendaze.com
servers:
  - url: https://api.vendaze.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: OAuth
  - name: People
  - name: Companies
  - name: Deals
  - name: Pipelines
  - name: Tasks
  - name: Task Types
  - name: Products
  - name: Tags
  - name: Lists
  - name: Custom Fields
  - name: Webhooks
paths:
  /v1/auth/delete-app:
    delete:
      tags:
        - OAuth
      summary: Delete an app
      description: >-
        Permanently deletes an OAuth app and all associated data, including
        active user sessions. This action is irreversible.
      operationId: deleteApp
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteAppRequest'
      responses:
        '204':
          description: App deleted. No response body.
        '400':
          description: >-
            Invalid or unparseable JSON body. Error code: `bad_request`.
            Message: `"Request body must be valid JSON."`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: bad_request
                  message: Request body must be valid JSON.
                  request_id: 550e8400-e29b-41d4-a716-446655440000
        '401':
          description: >-
            Email or client_secret does not match the registered app. Error
            code: `invalid_client`. Message: `"Invalid client credentials."`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_client
                  message: Invalid client credentials.
                  request_id: 550e8400-e29b-41d4-a716-446655440000
        '404':
          description: >-
            App not found or already deleted. Error code: `not_found`. Message:
            `"App not found."`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: not_found
                  message: App not found.
                  request_id: 550e8400-e29b-41d4-a716-446655440000
        '422':
          description: >-
            Input validation failed. Error code: `validation_error`. Message:
            `"Validation failed."` The `fields` object maps each invalid field
            to a description of the problem.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
              example:
                error:
                  code: validation_error
                  message: Validation failed.
                  fields:
                    email: Invalid email address.
                  request_id: 550e8400-e29b-41d4-a716-446655440000
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          description: >-
            Failed to delete the app. Error code: `internal_error`. Message:
            `"An unexpected error occurred."` Use the `request_id` to correlate
            with server-side logs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: An unexpected error occurred.
                  request_id: 550e8400-e29b-41d4-a716-446655440000
      security: []
components:
  schemas:
    DeleteAppRequest:
      type: object
      required:
        - client_id
        - email
        - client_secret
      properties:
        client_id:
          type: string
          format: uuid
        email:
          type: string
          format: email
          description: The API never reveals which email is on file.
        client_secret:
          type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
              format: uuid
    ValidationErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
              example: Validation failed.
            fields:
              type: object
              additionalProperties:
                type: string
            request_id:
              type: string
              format: uuid
  responses:
    RateLimitExceeded:
      description: 'Rate limit exceeded. Error code: `rate_limit_exceeded`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: rate_limit_exceeded
              message: Rate limit exceeded. Try again in 60 seconds.
              request_id: 550e8400-e29b-41d4-a716-446655440000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: OAuth 2.1 access token.

````