diff --git a/application/api/user/routes.py b/application/api/user/routes.py index eb5d7ac1..4ab0d007 100644 --- a/application/api/user/routes.py +++ b/application/api/user/routes.py @@ -39,7 +39,8 @@ def delete_conversation(): @user.route("/api/delete_all_conversations", methods=["POST"]) def delete_all_conversations(): - conversations_collection.delete_many({}) + user_id = "local" + conversations_collection.delete_many({"user":user_id}) return {"status": "ok"} @user.route("/api/get_conversations", methods=["get"]) diff --git a/frontend/src/settings/General.tsx b/frontend/src/settings/General.tsx index ef35b4ff..6af23b98 100644 --- a/frontend/src/settings/General.tsx +++ b/frontend/src/settings/General.tsx @@ -10,7 +10,6 @@ import { selectChunks, setModalStateDeleteConv, } from '../preferences/preferenceSlice'; -import Trash from '../assets/trash.svg'; const apiHost = import.meta.env.VITE_API_HOST || 'https://docsapi.arc53.com'; @@ -101,18 +100,12 @@ const General: React.FC = () => { Delete all conversations