You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
export obsidian: never prunes notes for removed nodes, so re-export merges old and new graphs #1896
graphify export obsidian writes notes for the current graph's nodes and refuses to overwrite files it does not recognise as its own — but it never deletes notes for nodes that no longer exist. Re-exporting over an existing vault therefore merges the old and new graphs into one pile.
Repro
Extract, then export obsidian (graph A → vault holds A's notes).
Change the corpus, or re-extract at a different mode, so the graph changes materially.
export obsidian again into the same directory.
Actual
The vault holds old ∪ new. Observed after a full rebuild: 276 notes, of which 126 were orphans from the previous graph — the new graph had 187 nodes + 29 communities, i.e. 216 legitimate notes. Exit code 0, and no warning about the orphans. (It did warn that it skipped one pre-existing foreign file rather than overwrite it, so the exporter clearly already distinguishes its own files from other people's.)
Expected
Prune the notes the exporter itself previously wrote for nodes that are now absent — the ownership signal needed to do this safely already exists, given the overwrite protection. Failing that, warn with an orphan count so the merge isn't silent.
Workaround today is rm -rf on the vault directory before every export.
Fixed on v8 in 876c043 (will ship in 0.9.17). export obsidian now prunes notes for nodes that left the graph, deleting only files in graphify's own ownership manifest with a vault-containment guard, so user-authored notes are never touched.
Activity
fix(export): prune orphaned Obsidian notes on re-export (#1896)
chore: open 0.9.17 with 8 batch fixes (#1895 #1897 #1902 #1907 #1896 #…
safishamsi commentedon Jul 14, 2026
Fixed on v8 in 876c043 (will ship in 0.9.17). export obsidian now prunes notes for nodes that left the graph, deleting only files in graphify's own ownership manifest with a vault-containment guard, so user-authored notes are never touched.
Squashed commit of the following:
fix(export): prune orphaned Obsidian notes on re-export (Graphify-Lab…
chore: open 0.9.17 with 8 batch fixes (Graphify-Labs#1895 Graphify-La…
fix(export): stop rewriting unchanged wiki/Obsidian pages on every run (