# Delete Organization

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /adm/v1/orgs/{ORG_NAME}:
    delete:
      summary: Delete Organization
      deprecated: false
      description: |-
        This function deletes all data of an ROCKIT Edge organization.

        **Note, this operation cannot be undone.**
      tags:
        - ROCKIT Edge - Admin API/Admin Edge Organizations
      parameters:
        - name: ORG_NAME
          in: path
          description: ''
          required: true
          example: '{{EDGE_ORG_NAME}}'
          schema:
            type: string
            pattern: /^[A-Za-z0-9_]{2,50}$/
        - name: prune
          in: query
          description: ''
          required: false
          example: 'true'
          schema:
            type: boolean
        - name: x-rockit-admaccess-token
          in: header
          description: ''
          required: false
          example: '{{_edge_admaccess_token}}'
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: >-
                      A string confirming that the organization was deleted
                      successfully.
                  message:
                    type: string
                    description: >-
                      Provides a confirmation message such as "organization
                      deleted" to indicate the deletion was completed.
                required:
                  - status
                  - message
                x-apidog-orders:
                  - status
                  - message
                x-apidog-ignore-properties: []
              examples:
                '1':
                  summary: '200: success'
                  value:
                    status: success
                    message: organization deleted
                '2':
                  summary: '401: unauthorized'
                  value:
                    status: failed
                    error: unauthorized
                    message: invalid token
                '3':
                  summary: '409: invalid-param'
                  value:
                    status: failed
                    error: invalid-param
                    message: cannot delete organization
                    detail: organization with name 'edgeOrgA' does not exist
          headers: {}
          x-apidog-name: Success
        '400':
          description: ''
          content:
            application/json:
              schema:
                properties:
                  status:
                    type: string
                    description: >-
                      Reflects that the creation failed due to one or more
                      invalid or missing parameters in the request.
                  error:
                    type: string
                    description: Contains an error identifier.  (e.g., "invalid-param")
                  message:
                    type: string
                    description: >-
                      Explains the nature of the invalid input (for example,
                      "name invalid").
                  detail:
                    type: string
                    description: >-
                      Offers further context on the error. (e.g., expected
                      pattern for the organization name)
                required:
                  - status
                  - error
                  - message
                  - detail
                x-apidog-orders:
                  - status
                  - error
                  - message
                  - detail
                $ref: '#/components/schemas/Invalid%20Param'
          headers: {}
          x-apidog-name: Invalid Param
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: >-
                      Reflects that the deletion request was rejected because of
                      authentication issues.
                  error:
                    type: string
                    description: Contains an error identifier. (e.g."unauthorized")
                  message:
                    type: string
                    description: >-
                      Provides details such as "invalid token" to help diagnose
                      the failure.
                required:
                  - status
                  - error
                  - message
                x-apidog-orders:
                  - status
                  - error
                  - message
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Unauthorized
      security: []
      x-apidog-folder: ROCKIT Edge - Admin API/Admin Edge Organizations
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/732774/apis/api-14082425-run
components:
  schemas:
    Invalid Param:
      type: object
      properties:
        status:
          type: string
          description: >-
            Reflects that the creation failed due to one or more invalid or
            missing parameters in the request.
        error:
          type: string
          description: Contains an error identifier.  (e.g., "invalid-param")
        message:
          type: string
          description: >-
            Explains the nature of the invalid input (for example, "name
            invalid").
        detail:
          type: string
          description: >-
            Offers further context on the error. (e.g., expected pattern for the
            organization name)
      required:
        - status
        - error
        - message
        - detail
      x-apidog-orders:
        - status
        - error
        - message
        - detail
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    Bearer token:
      type: bearer
      scheme: bearer
      description: >-
        Enter your Access Token. You can obtain this by calling the /be/v1/login
        endpoint. Use the Refresh token to get a new Access token when it
        expires.
servers:
  - url: https://Example-Server.com
    description: Default
security: []

```
