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

# Delete a session

> Permanently deletes the session and its saved state. All hydration tokens for this session are immediately invalidated — subsequent widget calls with the old `hydrationId` return 403. Idempotent: returns `{"success": true}` even if the session was already deleted.



## OpenAPI

````yaml /api-reference/sessions-openapi.json delete /{sessionId}/
openapi: 3.1.0
info:
  title: Dromo Sessions API
  description: APIs for managing partial-import save/restore sessions.
  version: '1.0'
servers:
  - url: https://app.dromo.io/api/widget/session/v2
security:
  - backend_license_key: []
tags:
  - name: sessions
    description: Managing partial-import save/restore sessions
paths:
  /{sessionId}/:
    delete:
      tags:
        - sessions
      summary: Delete a session
      description: >-
        Permanently deletes the session and its saved state. All hydration
        tokens for this session are immediately invalidated — subsequent widget
        calls with the old `hydrationId` return 403. Idempotent: returns
        `{"success": true}` even if the session was already deleted.
      operationId: deleteSession
      parameters:
        - name: sessionId
          in: path
          required: true
          description: UUID of the session to delete.
          schema:
            type: string
            format: uuid
            example: 1b6acf28-8748-4120-8d7a-4b7846d5e487
      responses:
        '200':
          description: Session deleted (or was already deleted)
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
components:
  securitySchemes:
    backend_license_key:
      type: apiKey
      name: X-DROMO-LICENSE-KEY
      in: header
      description: >-
        Your **backend** license key (`is_for_backend_api=True`) from the [Dromo
        Dashboard](https://dashboard.dromo.io/). Never expose this client-side.

````