> ## Documentation Index
> Fetch the complete documentation index at: https://allhandsai-chore-regenerate-agent-sdk-openapi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Workspace Session

> Clear the workspace session cookie.

Browsers identify cookies by ``(name, domain, path)``; the deletion
cookie must therefore share the original cookie's attributes. We
overwrite with an empty value and ``max_age=0`` so the browser drops
it immediately.



## OpenAPI

````yaml /openapi/agent-sdk.json delete /api/auth/workspace-session
openapi: 3.1.0
info:
  description: OpenHands Agent Server - REST/WebSocket interface for OpenHands AI Agent
  title: OpenHands Agent Server
  version: 1.52.0
servers: []
security: []
paths:
  /api/auth/workspace-session:
    delete:
      tags:
        - Auth
      summary: Delete Workspace Session
      description: |-
        Clear the workspace session cookie.

        Browsers identify cookies by ``(name, domain, path)``; the deletion
        cookie must therefore share the original cookie's attributes. We
        overwrite with an empty value and ``max_age=0`` so the browser drops
        it immediately.
      operationId: delete_workspace_session_api_auth_workspace_session_delete
      responses:
        '204':
          description: Cookie cleared
      security:
        - APIKeyHeader: []
components:
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-Session-API-Key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.