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

# Delete an organization

> Hides the organization immediately and schedules its resources for cleanup.
The request must confirm the organization slug.



## OpenAPI

````yaml /api-reference/openapi.personal.json delete /v1/orgs/{slug}
openapi: 3.1.0
info:
  title: Personal token API
  description: User-scoped API for account and organization management.
  version: 0.1.0
servers:
  - url: https://api.microsandbox.dev
security:
  - bearer: []
paths:
  /v1/orgs/{slug}:
    delete:
      tags:
        - Organization
      summary: Delete an organization
      description: >-
        Hides the organization immediately and schedules its resources for
        cleanup.

        The request must confirm the organization slug.
      operationId: delete_org
      parameters:
        - name: slug
          in: path
          description: Organization slug
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteOrgRequest'
        required: true
      responses:
        '200':
          description: Organization scheduled for deletion
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
        '400':
          description: Confirmation does not match
        '401':
          description: Unauthorized
        '403':
          description: Owner role required
      security:
        - bearer: []
components:
  schemas:
    DeleteOrgRequest:
      type: object
      description: >-
        DELETE /v1/orgs/:slug - delete an organization. `confirm` must echo the
        org slug,

        mirroring the dashboard's type-to-confirm, so a deletion can't fire by
        accident.
      required:
        - confirm
      properties:
        confirm:
          type: string
    MessageResponse:
      type: object
      description: Simple message response for operations without a body.
      required:
        - message
      properties:
        message:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        Personal access token (msb_pat_…) or session JWT - the credential an
        agent acts with on a user's behalf.

````