MCPcopy
hub / github.com/AstrBotDevs/AstrBot / delete_chat_session

Function delete_chat_session

astrbot/dashboard/api/chat.py:164–169  ·  view source on GitHub ↗
(
    session_id: str,
    auth: AuthContext = Depends(require_chat_scope),
    service: ChatService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

162
163@router.delete("/chat/sessions/{session_id}")
164async def delete_chat_session(
165 session_id: str,
166 auth: AuthContext = Depends(require_chat_scope),
167 service: ChatService = Depends(get_service),
168):
169 return await _run(lambda: service.delete_webchat_session(auth.username, session_id))
170
171
172@router.post("/chat/sessions/{session_id}/stop")

Callers

nothing calls this directly

Calls 2

_runFunction · 0.70

Tested by

no test coverage detected