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

# Delete a demo base stack

> Initiate teardown of a demo base stack. Deletion is refused with a 409 while any live demo references it. A never-materialised (configured) row is deleted outright; a materialised one goes to 'deleting' and the maintainer loop finishes the job. Organisation-admin only; browser session authentication with the X-Ankra-CSRF double-submit header (no bearer twin).



## OpenAPI

````yaml https://platform.ankra.app/openapi.json delete /org/ai-environment/demo-base-stacks/{base_stack_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /org/ai-environment/demo-base-stacks/{base_stack_id}:
    delete:
      tags:
        - AI Environment
      summary: Delete a demo base stack
      description: >-
        Initiate teardown of a demo base stack. Deletion is refused with a 409
        while any live demo references it. A never-materialised (configured) row
        is deleted outright; a materialised one goes to 'deleting' and the
        maintainer loop finishes the job. Organisation-admin only; browser
        session authentication with the X-Ankra-CSRF double-submit header (no
        bearer twin).
      operationId: delete_demo_base_stack
      parameters:
        - in: path
          name: base_stack_id
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoBaseStackDeleteResponse'
          description: Teardown initiated (or completed for a never-materialised row)
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: >-
            "Only organisation admins can change demo base stacks." (or a CSRF
            failure)
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: Not found ("Unknown demo base stack for this organisation")
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: >-
            Still referenced ("<n> running demo(s) still use this base stack;
            stop them first.")
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    DemoBaseStackDeleteResponse:
      properties:
        success:
          type: boolean
      required:
        - success
      type: object
    DemoDetailError:
      description: >-
        The FastAPI-style detail envelope the demo routes use for
        400/403/404/409/502 responses.
      properties:
        detail:
          type: string
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````