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

Function delete_chat_thread

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

Source from the content-addressed store, hash-verified

253
254@router.delete("/chat/threads/{thread_id}")
255async def delete_chat_thread(
256 thread_id: str,
257 auth: AuthContext = Depends(require_chat_scope),
258 service: ChatService = Depends(get_service),
259):
260 return await _run(lambda: service.delete_thread(auth.username, thread_id))
261
262
263@router.post("/chat/threads/{thread_id}/messages")

Callers

nothing calls this directly

Calls 2

_runFunction · 0.70
delete_threadMethod · 0.45

Tested by

no test coverage detected