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

# Delete Organization

> Delete an organization and all its data.

Only organization owners can delete. This permanently removes:
- All nodes and their commit histories
- All branches, pull requests, and objects
- All projection data (tags, connections, visual properties)
- All organization memberships, invite links, and allowed emails



## OpenAPI

````yaml delete /orgs/{org_id}
openapi: 3.1.0
info:
  title: Flow API
  description: Content-addressing backend with Git-like versioning
  version: 1.0.0
servers:
  - url: https://api.yertle.com
    description: Production
security: []
paths:
  /orgs/{org_id}:
    delete:
      tags:
        - organizations
      summary: Delete Organization
      description: |-
        Delete an organization and all its data.

        Only organization owners can delete. This permanently removes:
        - All nodes and their commit histories
        - All branches, pull requests, and objects
        - All projection data (tags, connections, visual properties)
        - All organization memberships, invite links, and allowed emails
      operationId: delete_organization_orgs__org_id__delete
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletionResultResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DeletionResultResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: True if the deletion succeeded
        deleted:
          additionalProperties: true
          type: object
          title: Deleted
          description: Counts of entities removed, keyed by entity type
        message:
          type: string
          title: Message
          description: Human-readable summary of the deletion
      type: object
      required:
        - success
        - deleted
        - message
      title: DeletionResultResponse
      description: Response returned by delete operations that report what was cleaned up.
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````