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

Method delete_webchat_thread

astrbot/core/db/sqlite.py:705–714  ·  view source on GitHub ↗

Delete a WebChat side thread.

(self, thread_id: str)

Source from the content-addressed store, hash-verified

703 return result.scalar_one_or_none()
704
705 async def delete_webchat_thread(self, thread_id: str) -> None:
706 """Delete a WebChat side thread."""
707 async with self.get_db() as session:
708 session: AsyncSession
709 async with session.begin():
710 await session.execute(
711 delete(WebChatThread).where(
712 col(WebChatThread.thread_id) == thread_id
713 )
714 )
715
716 async def delete_webchat_threads_by_parent_session(
717 self,

Callers

nothing calls this directly

Calls 3

deleteFunction · 0.85
get_dbMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected