Skip to content

Build your personal knowledge base with Trilium Notes

fixed deleting notes

azivner91245ab5b8f3
diff --git a/src/notes_api.py b/src/notes_api.py
index ad84e2fd7b..73c81cb798 100644
--- a/src/notes_api.py
+++ b/src/notes_api.py
@@ -78,7 +78,7 @@ def deleteNote(note_id):
children = getResults("select note_id from notes_tree where note_pid = ?", [note_id])
for child in children:
- delete(child['note_id'])
+ deleteNote(child['note_id'])
delete("notes_tree", note_id)
delete("notes", note_id)