When deleting a note, prompt to unlink the note's backlinks

When deleting a note, I don’t want to keep its node showing up in the graph. It would be great if Obsidian would give an option to unlink all the note’s backlinks.

Use case or problem

Cleaning up my graph view. If deleting a note it would be ideal if its ghost didn’t stick around in the form of “broken” wikilinks.

Proposed solution

In the file prompt to delete the note, include a toggle to unlink the note’s backlinks. Then upon deletion it un-links everything replacing them with its title with out the [[ ]] brackets.

Current workaround (optional)

Open the vault in VSCode, do a RegExp search for /\[\[<note title>.*\]\]/, then replace it with <note title> across all files.

2 Likes