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

Clear Unused Images Plus

puhhhpuhhh104 downloads

Fork of oz-clear-unused-images for clearing unused images from vaults.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Clear Unused Images Plus is a fork of oz-clear-unused-images.

The current fork is maintained by Aleksei B. The original plugin author is Ozan.

See the CHANGELOG for release-by-release updates.

This plugin helps keep your vault clean by deleting images that are no longer referenced in your markdown notes.

The plugin collects image links from markdown documents and compares them against image files in your vault.

If any image files are not referenced in any document, they can be deleted automatically.

Settings

Deleted Image Destination

Please make sure that you select the destination for deleted images under the "Clear Unused Images Plus Settings" tab. You have 3 options:

delete-destination

  1. Move to Obsidian Trash - Files are going to be moved to the .trash under the Obsidian Vault.

  2. Move to System Trash - Files are going to be moved to the Operating System trash.

  3. Permanently Delete - Files are destroyed permanently. You will not be able to revert them.

Clean Images On Vault Load

You can enable automatic cleanup during vault startup with the Clean Images On Vault Load setting.

clean-images-on-vault-load

  • The cleanup runs once after the vault layout is ready.
  • It only runs the image cleanup flow, not the Clear Unused Attachments command.
  • If you enable the toggle while Obsidian is already open, the change takes effect on the next vault load.
  • If Permanently Delete is selected, the existing confirmation dialog still appears before deletion starts.

Clean Images Every X Minutes

cleanup-interval

You can also enable recurring automatic cleanup with the Clean Images Every X Minutes setting.

  • The periodic timer only runs image cleanup while Obsidian stays open.
  • The timer starts after the vault layout is ready and waits the full configured interval before the first periodic run.
  • If both automatic modes are enabled, the vault-load cleanup runs once on startup and the periodic cleanup starts later on its normal interval.
  • Periodic cleanup is disabled when Permanently Delete is selected.
  • Changing the toggle, interval, or delete destination in settings updates the periodic scheduler for the current session.

Excluded Folders

You can exclude folders from which you do not want images to be removed during the scan. If there are multiple folders to exclude, separate them with commas. Please provide the full path inside the vault:

excluded-folders

You can now exclude all subfolders under the folder paths provided above:

exclude-subfolders

How to use

  1. Activate the plugin from Community Plugins.

  2. You can either:

    • Activate the ribbon icon from plugin settings and click the icon in the left ribbon to run the cleanup:

    ribbon-icon-settings

    • Or use the ribbon icon or open the Command Palette with Ctrl/Cmd + P and run Clear Unused Images Plus.

    command

  3. If you have turned on the "Delete Logs" option in plugin settings, you will see a modal with information about which images were deleted from your vault:

logs-modal

If all images are used, you will see the following message:

nothing-deleted

Scanned Image Formats : jpg, jpeg, png, gif, svg, bmp, webp

Support

This repository is distributed under the MIT License.

90%
HealthExcellent
ReviewSatisfactory
About
Remove image files no longer referenced in your Markdown notes by scanning document links and comparing them to vault files. Run cleanups automatically on vault load or at set intervals, and choose where removed images go (Obsidian trash, system trash, or permanent delete).
ImagesAutomationAttachments
Details
Current version
1.4.4
Last updated
4 weeks ago
Created
4 weeks ago
Updates
2 releases
Downloads
104
Compatible with
Obsidian 0.11.13+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
puhhhpuhhh
github.com/Puhhh
GitHubpuhhh
  1. Community
  2. Plugins
  3. Images
  4. Clear Unused Images Plus

Related plugins

Paste image rename

Rename image after pasting, support name pattern and auto renaming.

Image Context Menus

Image context menus (mostly on right click): Copy to clipboard, Open in default app, Show in system explorer, Reveal file in navigation, Open in new tab.

Ink

Hand write or draw directly between paragraphs using a digital pen, stylus, or Apple pencil.

Local Images Plus

A reincarnation of Local Images to download images in Markdown notes to local storage.

Attachment Management

Customize attachment path, auto-rename attachments, etc.

Image auto upload

Upload images from your clipboard by PicGo.

Imgur

Upload images from your clipboard to imgur.com and embeds uploaded image to your note.

QuickAdd

Quickly add new notes or content to your vault.

Templater

Create and use dynamic templates.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.