mcp_management

Delete Mcp Gateway Sessions

Force-close live stateful MCP gateway sessions on this proxy worker, selected by session id prefix and/or by the LiteLLM user that opened them (proxy admin only).

delete/v1/mcp/sessions

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/v1/mcp/sessions
  • Auth: API key in header x-litellm-api-key

Query parameters

session_id_prefixstring nullable
user_idstring nullable

Response

Successful Response

terminated_sessionsinteger required
worker_pidinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.