Recreate the issue: - Creating Note A and Note B - Link [[Note A]] in Note B (did it in wiki-style) - Run Script; backlink gets created - Remove Link to [[Note A]] in Note B - Run Script again Actual behaviour - Backlink in Note A to Note B still exists Expected behaviour - backlink gets removed