Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Orphan Cleaner

trbatukimtrbatukim20 downloads

Finds and deletes orphan nodes.

  • Overview
  • Scorecard
  • Updates1

An Obsidian plugin that finds and deletes orphan files — files that have no incoming or outgoing links anywhere in your vault — so you can keep your vault free of stray notes and attachments.

Features

  • Scans your vault for files with no incoming links (nothing references them) and no outgoing links (they don't link out to anything else).
  • Shows a confirmation dialog listing every orphan file found before anything is deleted, and warns you how deletion will behave based on your vault's trash setting (system trash, vault .trash, or permanent deletion).
  • Deletes files through Obsidian's file manager, respecting your vault's trash settings.
  • Configurable file extensions to scan (defaults to md png jpeg pdf).
  • Configurable excluded paths — folders or specific files that should never be treated as orphans.
  • Optional setting to skip any file that has at least one tag, even if it's otherwise unlinked.

Usage

  1. Click the trash-can ribbon icon, or run Clean orphan nodes from the command palette.
  2. Review the list of orphan files in the confirmation dialog.
  3. Confirm to delete them (moved to trash per your vault's trash setting), or cancel to back out.

Settings

Open Settings → Orphan Cleaner to configure:

  • File extensions — space- or comma-separated list of extensions to check (without dots), e.g. md png jpeg pdf.
  • Excluded paths — one folder or file path per line, relative to the vault root. Files inside these folders, or matching these exact paths, are never treated as orphans.
  • Exclude files with tags — when enabled, any file that has at least one tag is never treated as an orphan, even if nothing links to it.

Installing

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Copy them into <VaultFolder>/.obsidian/plugins/orphan-cleaner/.
  3. Reload Obsidian and enable Orphan Cleaner in Settings → Community plugins.

Development

npm install       # install dependencies
npm run dev        # compile in watch mode
npm run build       # type-check and produce a production build
npm run lint        # run eslint

Copy or symlink the repo into <VaultFolder>/.obsidian/plugins/orphan-cleaner/ for local testing, then reload Obsidian after each build.

License

See LICENSE.

HealthExcellent
ReviewSatisfactory
About
Find and delete orphan files—notes and attachments with no incoming or outgoing links—across your vault. Show a confirmation dialog listing orphans before removal, respect your vault's trash setting, and support exclusion by path, extension, or tags.
FilesAttachmentsTags
Details
Current version
1.0.0
Last updated
Last week
Created
2 weeks ago
Updates
1 release
Downloads
20
Compatible with
Obsidian 1.6.6+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
trbatukimtrbatukim
GitHubtrbatukim
  1. Community
  2. Plugins
  3. Files
  4. Orphan Cleaner

Related plugins

Pixel Perfect Image

Pixel perfect 100% image resizing, copy to clipboard, show image in Finder/Explorer, and much more.

Custom Attachment Location

Customize attachment location with variables($filename, $data, etc) like Typora.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Advanced URI

Control everything with URI.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Tag Wrangler

Rename, merge, toggle, and search tags from the tag pane.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Local REST API with MCP

Unlock your automation needs by interacting with your notes over a secure REST API.

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Share Note

Instantly share/publish a note, with the full theme and content exactly like you see in Obsidian. Data is shared encrypted by default, and only you and the person you send it to have the key.