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

# Clear All Sessions

> Soft-delete every active session (and its messages) for the user.

Delegates to the conversation service's ``clear_all``. Each cleared
session stays restorable per-session until the 30-day purge runs.
Returns the number of sessions cleared. User-scoped: only the calling
user's sessions are affected.

# IDOR AUDIT PASS — the service scopes every write to the user_id.



## OpenAPI

````yaml post /api/v1/sessions/clear-all
openapi: 3.1.0
info:
  title: EDN Memory Engine
  version: 0.1.0
servers:
  - description: EDN evaluation endpoint
    url: https://api.tensorpro.ai
security:
  - EDNApiKey: []
paths:
  /api/v1/sessions/clear-all:
    post:
      summary: Clear All Sessions
      description: |-
        Soft-delete every active session (and its messages) for the user.

        Delegates to the conversation service's ``clear_all``. Each cleared
        session stays restorable per-session until the 30-day purge runs.
        Returns the number of sessions cleared. User-scoped: only the calling
        user's sessions are affected.

        # IDOR AUDIT PASS — the service scopes every write to the user_id.
      operationId: clear_all_sessions_api_v1_sessions_clear_all_post
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClearAllResponse'
          description: Successful Response
components:
  schemas:
    ClearAllResponse:
      properties:
        cleared:
          title: Cleared
          type: integer
      required:
        - cleared
      title: ClearAllResponse
      type: object
  securitySchemes:
    EDNApiKey:
      description: >-
        EDN API key presented as 'Bearer <key>' in the Authorization header.
        Create and manage keys from the Console.
      in: header
      name: Authorization
      type: apiKey

````