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
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Clear Unused Images

ozntelozntel141k downloads

Clear the images that you are not using anymore in your Markdown notes to save space.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates16

This plugin helps you to keep your vault clean by deleting the images you are not referencing in your markdown notes anymore.

The plugin simply gets all of your image links from all the markdown documents and compares these images with all image files you have available in your vault.

In case any of these image files are not referenced in any document of the vault, they will be automatically deleted.

Settings

Deleted Image Destination

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

  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 going to be destroyed permanently. You won't beable to revert back.

Excluded Folders

You can exclude folders, from which you don't want images to be removed during the scan. In case there are multiple folders to be excluded, you can divide them by comma. Please ensure you provide the full path in Vault:

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

How to use

  1. Activate the plugin from Community Plugins

  2. You can either:

    • Activate the Ribbon Icon from plugin settings and click Icon from Left Ribbon for running the clean up:
    • Or use Ribbon Icon or Open Command Palette (Using Ctrl/Cmd + P or from Ribbon) Run "Clear Unused Images".
  3. If you have turned on "Delete Logs" option in plugin settings, you will see a modal popping up with an information which images are deleted from your vault:

In case all images are used, you will see communication as below:

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

Planned Features

  • Creating settings for users to select the destination of the deleted files
  • Excluded folders settings for the scan
  • Images to be cleaned during load of the vault if users chooses.
  • Images to be cleaned every X minutes depending on user's choice

Support

If you are enjoying the plugin then you can support my work and enthusiasm by buying me a coffee:

45%
HealthFair
ReviewRisks
About
Clear unused image files by scanning all markdown links and removing image files not referenced anywhere in your vault. Move deletions to Obsidian trash, system trash, or delete permanently, and exclude folders from scans to protect assets.
Images
Details
Current version
1.1.1
Last updated
2 years ago
Created
5 years ago
Updates
16 releases
Downloads
141k
Compatible with
Obsidian 0.11.13+
Report bugRequest featureReport plugin
Sponsor
Ko-fi
Author
ozntelozntel
ozan.pl/aboutme/
GitHubozntel
  1. Community
  2. Plugins
  3. Images
  4. Clear Unused Images

Related plugins

PlantUML

Generate PlantUML diagrams.

Local images plus

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

Pretty Properties

Makes note properties look more fun: adds side image, banners, list property colors and allows to hide specific properties.

Pixel Banner

Enhance your notes with customizable banner images.

Paste image rename

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

Image auto upload

Upload images from your clipboard by PicGo.

Mousewheel Image zoom

Increase or decrease the size of an image by scrolling.

Tars

Text generation based on tag suggestions, using Claude, OpenAI, Ollama, Kimi, Doubao, Qwen, Zhipu, DeepSeek, QianFan & more.

Leaflet

Interactive maps inside your notes.

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.