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

# Delete demo session

> Revokes the calling API key and deletes the customer row with all dependent data
(connections, entities, mappings) via CASCADE. Returns 204 with no body.


Revokes the calling API key and deletes the entire demo customer with all dependent data -
connections, entity mappings, canonical objects, and platform objects. Deletion cascades
through the database; there is nothing left to clean up.

Returns `204 No Content` on success with no response body. The API key used to make this
call is no longer valid after it completes.


## OpenAPI

````yaml DELETE /demo/session
openapi: 3.1.0
info:
  title: Structural API
  version: '1.0'
  description: |
    Bidirectional data translation between construction management platforms.
    One integration gives you normalized access to every connected platform.
  contact:
    email: support@structural.app
    url: https://structural.app
servers:
  - url: https://api.structural.app/api/v1
    description: Production
security: []
paths:
  /demo/session:
    delete:
      tags:
        - Demo
      summary: Delete demo session
      description: >
        Revokes the calling API key and deletes the customer row with all
        dependent data

        (connections, entities, mappings) via CASCADE. Returns 204 with no body.
      operationId: deleteDemoSession
      responses:
        '204':
          description: Demo session deleted
        '401':
          $ref: '#/components/responses/AuthenticationError'
      security:
        - bearerAuth: []
components:
  responses:
    AuthenticationError:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              type: AUTHENTICATION_ERROR
              message: Invalid or missing API key
              request_id: req_a1b2c3d4e5f6
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          required:
            - type
            - message
            - request_id
          properties:
            type:
              type: string
              description: Machine-readable error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human-readable error description
              example: platform and entity_type query params required
            request_id:
              type: string
              description: Unique request identifier — quote this in support requests
              example: req_a1b2c3d4e5f6
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        API key passed as a Bearer token. Keys are prefixed: `sk_demo_*`
        (sandbox),

        `sk_live_*` (production), `sk_test_*` (staging).

````