Advanced Rename and Delete Handler

by Michael Naumov
5
4
3
2
1
Score: 67/100

Description

The Advanced Rename and Delete Handler plugin takes over rename and delete handling across a vault so links, attachment files and attachment folders stay in sync when notes move or change names. It updates link display text when that text still matches the old file name, leaves custom link text alone and can remove attachments or empty folders left behind after deletion when you enable those options. Shared attachments are never deleted with one note and can be reassigned to another note, with a prompt when priorities do not settle the owner. You can treat endings like .excalidraw.md as attachments instead of notes, limit handling with include and exclude paths and migrate or read settings through a versioned cross plugin API.

Reviews

No reviews yet.

Stats

15
stars
52,510
downloads
0
forks
98
days
0
days
0
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
12
total issues
0
open issues
12
closed issues
400
commits

RequirementsExperimental

  • BRAT plugin

Latest Version

14 hours ago

Changelog

This release has 1 fix. 2 maintenance commits (tests, build, CI, refactoring, dependencies) are not listed.

Fixed

  • rename: rewrite links of a case-only rename directly, with no temporary name

Full Changelog: https://github.com/mnaoumov/obsidian-advanced-rename-and-delete-handler/compare/3.6.0...3.6.1

README file from

Github

Advanced Rename and Delete Handler

Buy Me a Coffee GitHub release Obsidian downloads Minimum Obsidian version Coverage: 100%

Obsidian updates the links pointing at a note when you rename it, and stops there. The images you pasted into that note stay behind under the old name. Deleting the note leaves them behind entirely, referenced by nothing, in a folder named after something that no longer exists.

This plugin takes over renaming and deleting for the whole vault: links follow the note, the files it owns travel with it, and what a deletion leaves behind is cleaned up on terms you choose.

It is the single owner of that behavior in a vault, and stands aside, saying why, while an older plugin that still carries its own copy is enabled. See Living with other plugins.

Demo vault

The documentation is a demo vault. Every feature has a note that explains what it does and why you would want it, with buttons that perform the rename or the deletion and then print the vault as a tree, so you see the effect rather than read a description of it.

Start reading here — it is plain markdown, so it works on GitHub with nothing installed.

A copy of the vault ships with every release. You can access it via any of the following:

  1. Running the Advanced Rename and Delete Handler: Open demo vault command, on desktop. The command is not available on mobile, so use the next option there.
  2. Downloading advanced-rename-and-delete-handler-demo-vault.zip from the Releases. It unzips into a single advanced-rename-and-delete-handler-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • Nothing, until you turn it on, and a fresh install says so once. 01 Renaming a note
  • Links follow a renamed or moved note, display text included, unless somebody gave the link their own words. 01 Renaming a note
  • Attachments travel with the note that owns them, folder and all. 01 Renaming a note
  • Paths Obsidian never updates are looked after too: HTML src and href paths, the paths and links inside Bases filters and formulas, and plain paths in frontmatter are rewritten, and a path left in another plugin's settings is named in a notice. 01 Renaming a note
  • Deleting a note can clean up after it: its own attachments and the folders left empty, plus a Delete empty folders command. 02 Deleting a note
  • An attachment two notes share is never deleted with one of them, and can move to the note that still uses it. 03 Shared attachments
  • An Excalidraw drawing counts as an attachment, not a note, as does any ending or property: match you add. 04 What counts as a note
  • The plugin can be confined to part of the vault with include and exclude path lists. 05 Limiting the scope
  • It lists the plugins that depend on it, and stands aside for one that still owns its own handler. Living with other plugins

See also

My other Obsidian resources

Plugin Features How Advanced Rename and Delete Handler differs
Attachment Manager Per-note attachment folder; rename/delete; pasted-image naming; visibility; overrides core settings Same lifecycle goal; arbitrary existing layouts; shared attachments; include/exclude paths
Base Path Updater Rewrites folder paths in Bases filters and formulas after a folder move; undo history Overlapping Bases paths, plus links, attachments and HTML paths in notes; no undo history of its own
Bases Rename Sync Rewrites link(), name and path references in .base files and base blocks on a rename Overlapping Bases references, plus links, attachments and HTML paths in notes
Consistent Attachments Moves/copies attachments on note moves; shared-file choices; orphan/placement scans Broader lifecycle scope: deletions too
Delete Note and Attachments Unlisted; explicit note-plus-embeds deletion; shared-use confirmation Broader trigger: ordinary note deletion too
File Bundles (my plugin) Declared locked bundles; move, rename, duplicate and delete together Alternative grouping: derives attachments from links and configured folders
Media Archive Archives deleted/unused media; shared-use protection; two fixed folders Different scope: each note's attachments and their lifecycle
Move Files Command gathers linked files into a note-specific folder and updates links Different trigger: follows renames automatically
Note Attachment Folder Same-name attachment folder per note; captures pastes; folder follows renames and moves; trashed with the note Same lifecycle goal; any attachment layout rather than one folder per note; no paste capture
Note Folder Autorename Folder-note convention; folder follows note moves/renames Different grouping: linked attachments rather than one companion folder
Plain Path Relink Rewrites plain-text paths in frontmatter and inline code after a move; logs mentions left unchanged Overlapping frontmatter paths, plus HTML and Bases paths, attachments and deletions; no inline code or log
Remove Empty Assets Periodic/startup/deletion cleanup of empty attachment folders Broader cleanup: attachment files as well as folders
Remove Empty Folders Explorer action removes empty folders one level per run Broader sweep: whole vault, deepest first, in one command
Resource Link Refactor Unlisted; fixes attachment references after renames outside Obsidian; paths in properties and HTML attributes; optional attachment moves Overlapping HTML paths; renames made inside Obsidian only; deletions too
Strip Images Command removes image embeds and trashes unshared images; note stays Different trigger: cleans attachments after deleting a note
Unlink on Delete Turns incoming links into plain text when a file is deleted Complementary cleanup: files left by a deletion rather than incoming links

Last searched for similar plugins on 2026-11-26.

For plugin developers

Plugins that used to handle renames and deletions themselves hand their settings over through this plugin's API, read them back, and can declare this plugin as a dependency. Any plugin can also move many files at once through it, with each linking note rewritten once and a promise that resolves when the links are final. Diagnostic consumers can subscribe to bulk start and end notifications, including failures, through contract 1.4.0. The types are in api.d.ts and the contract in api-contract.ts, both copyable as they are; Plugin API walks through them.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin (id: advanced-rename-and-delete-handler) are hidden.

If you need to enable them, refer to the documentation.

Changelog

All notable changes to this project will be documented in the CHANGELOG.

Contributing

Contributions are welcome — see CONTRIBUTING to get set up.

Support

Filing an issue (for AI agents and humans)

Open issues through the issue forms, not as blank issues.

To report a bug from inside Obsidian, run the Advanced Rename and Delete Handler: Report a bug command. It opens the bug form with the plugin version, the Obsidian version and your operating system already filled in.

Filing from the CLI or the API (gh issue create --body, or an AI agent filing for you) skips the form, and gh issue create --template cannot load an issue form. In that case, open the matching form in .github/ISSUE_TEMPLATE/, copy every field as a ### <label> heading in the form's order, and fill in each one. Always state the plugin version, the Obsidian version and your operating system.

License

© Michael Naumov

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Attachment Management
3 years ago by trganda
Attachment Management of Obsidian
Attachment Manager
3 years ago by chenfeicqq
Attachment folder name binding note name, automatically rename, automatically delete, show/hide.
Attachment Uploader
4 months ago by zhuxining
An attachment uploader plugin for Obsidian
Clear Unused Images
6 years ago by Ozan Tellioglu
Obsidian plugin to clear the images that are not used in note files anymore
Content-Addressed Attachments
9 months ago by NateScarlet
Stores obsidian attachments using content-based addressing (similar to IPFS)
Excalidraw CN
3 years ago by Korbin Zhao
支持中文手写的 Excalidraw Obsidian 插件。A Obsidian plugin of Excalidraw supporting Chinese handwrite font.
Excalidraw Extras
6 months ago by zsviczian
Companion Obsidian.md plugin hosting extra add-on optional features for the main Excalidraw-Obsidian plugin
Excalidraw Math Plotter
4 months ago by ahmeddawoud3
Plot mathematical function graphs directly onto Excalidraw canvases.
Excalink
3 months ago by Aditya Kumar
Excalink is an Obsidian plugin that enables IntelliSense-style autocompletion for groups and named frames inside .excalidraw.md files. When you type [[filename#, it suggests all available frame names, allowing fast, precise linking to parts of your drawings.
File Cleaner
5 years ago by Johnson0907
A file cleaner plugin for Obsidian.
Find Orphaned Images
5 months ago by josmarcristello
Find Orphaned Images is an Obsidian plugin designed to help you keep your vault clean and organized by identifying and managing images that are not linked anywhere in your notes.
Image Manager
4 months ago by David V. Kimball
Insert, rename, and sort external images by transforming them into local files within your notes.
Janitor
4 years ago by Gabriele Cannata
Performs various maintenance tasks on the Obsidian vault
Just Simple Excalidraw
4 months ago by David Hurt
A local-first Excalidraw editor for native .excalidraw files in Obsidian, preserving the original's brilliant simplicity.
Mappy
2 months ago by hiroyaiizuka
An Obsidian plugin to view and edit Markdown notes as linked, illustrated mind maps.
Markdown Cleaner
7 months ago by gao-qian-long
Obsidian格式化markdown插件
Math+
6 months ago by ocapraro
This is an Obsidian plugin for taking math notes using Excalidraw.
Mobile PDF Exporter
4 months ago by Murat
One-click selectable preview PDF export plugin for Obsidian mobile and desktop.
Move Files
a year ago by Nitish Khurana
Note archiver
3 years ago by thenomadlad
Note Folder Autorename
6 years ago by PJ Eby
Obsidian plugin to support folder-overview notes by keeping their folder in sync
Oriko
3 months ago by trevware
A pannable, zoomable wall of your web clippings. Sort them into grids, filter by any property, and clip from your phone. Media is downloaded into your vault, so clippings keep their images and videos even if the source page is deleted.
PDF Paste
2 years ago by Cormac
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Sync-safe file names
a year ago by j-maas
Ensure your Obsidian files can always be synced across all your devices.