From 97f5c4e973a703b63a2606b054de324db88f706f Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 20 Oct 2026 14:18:03 -0400 Subject: [PATCH] fix: Archive All Chats takes chats out of their folders, so deleting a folder no longer deletes them (#32647) --- backend/open_webui/models/chats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/models/chats.py b/backend/open_webui/models/chats.py index 98f41b5079..202d8cdc60 100644 --- a/backend/open_webui/models/chats.py +++ b/backend/open_webui/models/chats.py @@ -1565,7 +1565,7 @@ class ChatTable: async def archive_all_chats_by_user_id(self, user_id: str, db: AsyncSession | None = None) -> bool: try: async with get_async_db_context(db) as session: - await session.execute(update(Chat).filter_by(user_id=user_id).values(archived=True)) + await session.execute(update(Chat).filter_by(user_id=user_id).values(archived=True, folder_id=None)) await session.commit() return True except Exception: