from app.db_local_storage.in_memory_db import query_response_storage from fastapi import APIRouter from fastapi.responses import JSONResponse router = APIRouter() @router.delete("/clear_variables/") async def clear_variables(): query_response_storage.clear() return JSONResponse(status_code=200, content={"message": "All variables cleared"})