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

# Delete Session

> Remove a session

Permanently deletes a session from the workspace. Completed sessions cannot be deleted.

## Request

```bash theme={null}
curl -X DELETE https://api.series.hr/sessions/delete/session_abc123 \
  -H "apikey: YOUR_API_KEY"
```

## Parameters

<ParamField path="sessionId" type="string" required>
  The session ID to delete
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "message": "Session deleted successfully",
      "SessionId": "session_abc123",
      "Deleted": true
    }
  }
  ```
</ResponseField>

<ResponseField status={400} name="400">
  Cannot delete a completed session.
</ResponseField>

<ResponseField status={404} name="404">
  Session not found.
</ResponseField>

<Note>
  Completed sessions cannot be deleted to preserve historical records.
</Note>


## OpenAPI

````yaml DELETE /sessions/delete/{sessionId}
openapi: 3.0.0
info:
  title: Series API
  version: 1.0.0
  description: >-
    Series API — a free REST API by Sailboat Games, LLC that lets Roblox
    communities programmatically manage workspaces, staff, sessions, time-off
    and activity data.
  contact:
    name: Sailboat Games, LLC.
    email: admin@sailboatgames.com
servers:
  - url: https://api.series.hr
    description: Production API
security:
  - ApiKeyAuth: []
paths:
  /sessions/delete/{sessionId}:
    delete:
      tags:
        - Sessions
      summary: Delete Session
      description: Permanently delete a session. Completed sessions cannot be deleted.
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
          description: The session ID to delete
      responses:
        '200':
          description: Session deleted successfully
        '400':
          description: Cannot delete completed session
        '404':
          description: Session not found
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Pass your API key in the `apikey` header. Alternatively, the `x-api-key`
        header is also accepted.

````