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

Function batch_delete_chat_sessions

astrbot/dashboard/api/chat.py:125–135  ·  view source on GitHub ↗
(
    payload: ChatSessionBatchDeleteRequest,
    auth: AuthContext = Depends(require_chat_scope),
    service: ChatService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

123
124@router.post("/chat/sessions/batch-delete")
125async def batch_delete_chat_sessions(
126 payload: ChatSessionBatchDeleteRequest,
127 auth: AuthContext = Depends(require_chat_scope),
128 service: ChatService = Depends(get_service),
129):
130 return await _run(
131 lambda: service.batch_delete_sessions_from_dashboard_payload(
132 auth.username,
133 _model_dict(payload),
134 )
135 )
136
137
138@router.get("/chat/sessions/{session_id}")

Callers

nothing calls this directly

Calls 3

_runFunction · 0.70
_model_dictFunction · 0.70

Tested by

no test coverage detected