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

# Close user session

> Closes all MCP server instances for a user



## OpenAPI

````yaml https://gist.githubusercontent.com/hillaryke/db4387d90d8a2367c8d3f478f2d48acc/raw/65b07bde29d5ff9b22522b3659db0b103c2d32e4/openapi.json delete /sessions/{userId}
openapi: 3.0.0
info:
  title: MCP Hub API
  version: 1.0.0
  description: >-
    A service that manages isolated Model Context Protocol (MCP) server
    instances
servers:
  - url: http://localhost:3000
    description: Development server
security: []
tags: []
paths:
  /sessions/{userId}:
    delete:
      tags:
        - Sessions
      summary: Close user session
      description: Closes all MCP server instances for a user
      parameters:
        - name: userId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Session closed successfully
        '500':
          $ref: '#/components/responses/Error'
components:
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string

````