What I’m trying to do
I am looking for any way to distinguish images that were dragged/sent to Obsidian vs images that were orphaned by deleting a file that embedded the image, so that the latter can be periodically deleted.
Things I have tried
-
Used plugin “Find orphaned files (files with no backlinks) and broken links” has features to find and delete images that are not embedded anywhere, but to my knowledge, it can’t distinguish between orphaned images and images that were purposely sent to Obsidian from Android or dragged from Windows 11. Orphaned images and purposely solitary images both show up in the attachments folder and since they are not embedded in any existing notes, they are all technically orphans. (Accidentally deleted some images this way.)
-
Read the description of the plugin “Clear unused images,” which says “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.” That would delete both the dragged/dropped/sent images and the images that were orphaned from deleted markdown files.
-
Thought about Dataview queries, but they only see markdown files.
-
Wondered if there is a way to set up some trigger on images arriving in my attachments folder directly (without an accompanying markdown file), and then automatically embed them in a note of some kind, or something like that.