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

# Delete Organization

> Delete an organization.

Deletes an organization if it has no active (non-deleted) applications.
Requires the `delete:organizations` permission, available to users with an `owner` role for the organization.

Returns:
    Object with deletion timestamp

Raises:
    HTTPException: 404 if organization not found or user lacks permission;
    HTTPException: 400 if organization has active applications



## OpenAPI

````yaml DELETE /organizations/{org_id}
openapi: 3.1.0
info:
  title: Unomiq Management API
  description: >-

    API for managing settings for organizations, applications and API keys.


    ## Authentication


    All API endpoints require authentication via JWT token in the Authorization
    header:


    ```

    Authorization: Bearer <your_jwt_token>

    ```
        
  version: 1.0.0
servers:
  - url: https://management-api.unomiq.com
    description: Production
security: []
paths:
  /organizations/{org_id}:
    delete:
      tags:
        - organizations
      summary: Delete Organization
      description: >-
        Delete an organization.


        Deletes an organization if it has no active (non-deleted) applications.

        Requires the `delete:organizations` permission, available to users with
        an `owner` role for the organization.


        Returns:
            Object with deletion timestamp

        Raises:
            HTTPException: 404 if organization not found or user lacks permission;
            HTTPException: 400 if organization has active applications
      operationId: delete_organization_organizations__org_id__delete
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationDeleteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    OrganizationDeleteResponse:
      properties:
        id:
          type: string
          title: Id
        message:
          type: string
          title: Message
        deleted_at:
          type: string
          title: Deleted At
      type: object
      required:
        - id
        - message
        - deleted_at
      title: OrganizationDeleteResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````