> ## Documentation Index
> Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a session by identifier

> Delete a session by its identifier. The identifier can be either:
1. A global ID (base64-encoded)
2. A user-provided session_id string

This will permanently remove the session and all associated traces, spans, and annotations via cascade delete.



## OpenAPI

````yaml delete /v1/sessions/{session_identifier}
openapi: 3.1.0
info:
  title: Arize-Phoenix REST API
  description: Schema for Arize-Phoenix REST API
  version: '1.0'
servers: []
security: []
paths:
  /v1/sessions/{session_identifier}:
    delete:
      tags:
        - sessions
      summary: Delete a session by identifier
      description: >-
        Delete a session by its identifier. The identifier can be either:

        1. A global ID (base64-encoded)

        2. A user-provided session_id string


        This will permanently remove the session and all associated traces,
        spans, and annotations via cascade delete.
      operationId: deleteSession
      parameters:
        - name: session_identifier
          in: path
          required: true
          schema:
            type: string
            description: >-
              The session identifier: either a GlobalID or user-provided
              session_id string.
            title: Session Identifier
          description: >-
            The session identifier: either a GlobalID or user-provided
            session_id string.
      responses:
        '204':
          description: Successful Response
        '403':
          description: Forbidden
          content:
            text/plain:
              schema:
                type: string
        '404':
          content:
            text/plain:
              schema:
                type: string
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````