Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: delete blob before document and correct settings API path

LearningCircuite18231ecca89
diff --git a/src/local_deep_research/research_library/services/library_service.py b/src/local_deep_research/research_library/services/library_service.py
index e7ce85300b..e5e4d02d5b 100644
--- a/src/local_deep_research/research_library/services/library_service.py
+++ b/src/local_deep_research/research_library/services/library_service.py
@@ -694,6 +694,10 @@ class LibraryService:
tracker.is_downloaded = False
tracker.file_path = None
+ # Delete blob first (required due to PK constraint on document_id)
+ if doc.blob:
+ session.delete(doc.blob)
+
# Delete database entry
session.delete(doc)
session.commit()
diff --git a/src/local_deep_research/web/static/js/deletion/confirmation_modal.js b/src/local_deep_research/web/static/js/deletion/confirmation_modal.js
index 549fd6a663..7e41d77ae0 100644
--- a/src/local_deep_research/web/static/js/deletion/confirmation_modal.js
+++ b/src/local_deep_research/web/static/js/deletion/confirmation_modal.js
@@ -226,7 +226,7 @@ function getDeleteTooltip(action) {
*/
async function areConfirmationsEnabled() {
try {
- const response = await fetch('/api/v1/settings/research_library.confirm_deletions');
+ const response = await fetch('/settings/api/research_library.confirm_deletions');
if (response.ok) {
const data = await response.json();
return data.value !== false;