---
id: session-disconnect
title: "Disconnect Session"
description: "Forcefully disconnect a specific session."
sidebar_label: "Disconnect Session"
hide_title: true
hide_table_of_contents: true
api: eJzVV1tv47YS/isDLlC0giKnu33yW07WRYO9FXF6+rAbHNDkWOKaIrUcyqlr6L8XQ0q2kmxP28c+WRbn8n3DuekooqxJLD8KQiLjHYn7UmgkFUwXjXdiKX70QeG2t/YA2pDyzqGKIIE6VGZrFIyqlSiF7zBI1rvRYjnZfH3SEqXoZJAtRgzs9SgMe+hkbEQpnGzxrHWjxVMkdw2C0eii2RoM4LcQG5y7D/ilNwG1WMbQYylINdhKsTyKeOiS7RiMq8Uw3LMwdd4REp+/vPyBfx77W2fLM9qogXqlkCgFpBJDKX64/P65KkNlNEgRRlQEPWEA2ceGKagUJ0atvIvoIhuRXWfHk8VnYkvH5yT85vMYy8DxjiZTaJFI1vic7dMwvsYojUUNGIIPMOpVYhhKEU20rLrio3ejxWEYEs9XX+dJGPYYoHcaA0XvdbqWkX0Jm55DsO0JCaJP/H0wvyOY+K9i/5UESexzGaCGgOT7oBAeJIHzEba+d/pfw3EoRYux8Vy5nadcrLERS7GQnVlMDWJxPBXosNDz0s55kOv6MZ63Xkk75okoRR+sWIomxm65WFg+azzF5avLy0vBlUmo+mDiIVn6D8qA4apnJB/vh/Iorr3fGZy/ufM7dKcXMwtrjmwO3lzrFD/ZmTd4EGXuQyqJnDvR+9WbD/9br9brmw/vn8X46lEdQ0/G1dwVx56RbaUGMWdw8szsxdih+P8mCf1dL9kkROadfMwi8CfkvvQYDmduSfXvukvC0Eki1CAJJCRrcGrmObWM2/rkf0yx97jzcPXzjSgFJ0Z28aq6rC6fOU6iqUX8ipvbu2uQTvPj2qsdRtggGY0Et6v1HVvkRtIFvzeaG420F9G0CPzXA8WAsjWuLsG4iEGqaPYIylsrNz6PpzLZD9j6iKCRdtF3sO2d4kNpTTxUn9wn9+LFC7j2AeEOVeO89bVB4oMLKIr/Jm/ryRt4boIZfVF8cgAXkFhZ3GOQNRIUxXQMWx/OwEuw/uHCyohOHUpoTN1cfOkTjJETo5W9NjN2VXbxBg8bL4NOIq3vCQH36CKBDAgxSEetiTy4Er40MGWLU5jH6uXLZkiEsrVIdI6cd9VE+Jbx3nGg16bmKHFuOA3Xvm17N+XMFIZ8c1MkEvXpFZg0C3V2eTZm3ATrW6zqqjwVE1KUG2uoadHFEm6uV6Ck00bLiIC/qUa6Gr+rALKzt+m+GxnPFvqOZSnf+26M2SLHayut3Ui1SxFrpNN2itYJ8zkGUwIy9NUewyE2DH1lCc9cn5TRNzBtEu+kkzUyi6KAC1hzm8Kv7QUJ5wQ+YeIrnwgWxa33bZL5hXWfmL0OKGMqgNZrsz2kRxbmORS8TcHOTtMuw9UUvG9p5uD1WBTXWYWS4Sv9uSe2DKQCInc5tzV1n4uKSmgZCJ/v/iwtq8nB+kARW/gJpY0NfAPvMAajsp9bfsZ9cpTFmiymGlQ7SkZPq6a0YByZuokZfy7bn/wD3ES4shZ+9WFHcOdrjA0GFvi+mtdivnKCFrWR5wJLV1wUT9pLOdYhQ9AyyqKoPrmX1ZMER0c9b3wSiqLj1kcxZe7GaBNw7DJF8bT8Zm1gXoGZ16tqln9FMfU/bitb4/CiDtI4PF1yUeQcnt3z2PU4dR5dXMruH3lR4F6n0/JAJS9tacakpsH7bkp87VXPmTZpilJYo9BR2kvG6XLVSdUgvEyd/tG4f3h4qGQ6rXyoF6MqLd7eXK/er1cXL6vLqomtTQOF15BWupnh87fEVFNPR8nxvG39o0+XcWhG/C0uOiuN47GaoB/HPegjT9S054yfSqVYPvpYOS9D96XglYZ1jseNJPwl2GHg13kMLz/el2Ivg5EbnpS8MBniZy2WW2kJ/w+pb2/Hr5zv4C8/iL5KaloPHK8De2l7/idKscPDo8+v4X4oRYNSY0gQ8/mVUtjFmeazjZYXsNMm+fOH9Z0Yhj8A7boCdA==
sidebar_class_name: "post api-method"
info_path: docs/api/neko-api
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Disconnect Session"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/api/sessions/{sessionId}/disconnect"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Forcefully disconnect a specific session.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"in":"path","name":"sessionId","description":"The identifier of the session.","required":true,"schema":{"type":"string"}}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"Session disconnected successfully."},"401":{"description":"The request requires user authentication.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Detailed error message."}},"title":"ErrorMessage"}}}},"403":{"description":"The server understood the request, but refuses to authorize it.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Detailed error message."}},"title":"ErrorMessage"}}}},"404":{"description":"The specified resource was not found.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Detailed error message."}},"title":"ErrorMessage"}}}}}}
>
  
</StatusCodes>


      