1.0.0
First release.
Obsidian updates internal links when you rename a note. When you delete one, the links pointing at it are left behind, pointing nowhere. This plugin closes that gap: delete a file and the links that pointed at it are cleaned up straight away.
What it handles
- Wikilinks
[[Foo]],[[Foo|bar]],[[Foo#Heading]] - Embeds
![[Foo]], including images and other attachments - Markdown links
[bar](Foo.md) - Frontmatter properties such as
related:andprojects:
Deleting a folder covers the files inside it, and deleting several files at once is handled as a single pass.
What it leaves behind
Either plain text ([[Foo|bar]] becomes bar, so the sentence still reads correctly) or struck-through and dated (~~Foo~~ (removed 2026-08-09)). Properties always become plain text, since strikethrough would only be a literal string in YAML, or the value can be dropped entirely.
Only the file you deleted
Unlike a broken-link sweeper, this never strips links in bulk. It touches only links pointing at the file just deleted, and only after confirming they no longer resolve to anything live. Unresolved links you keep on purpose, as placeholders for notes not yet written, are never touched.
A confirmation dialog listing the affected notes is shown by default, and there is an excluded-folders list for templates and archives.
Installing
Not yet in the community directory. Download main.js, manifest.json and styles.css below into <vault>/.obsidian/plugins/unlink-on-delete/, then enable it under Settings → Community plugins.