A Plugin for Obsidian
This plugin goes through your whole vault and searches for files, which are linked nowhere. In other words: Files with no backlinks.
In the end, it will create a file with a list of links to these orphaned files. Now you can either delete these unused files or link them somewhere in your vault.
Creates a file with a list of links, which linked file has not been created yet.
In addition, there is a command to create those linked files.
Creates a file with a list of empty files. Files with just frontmatter are considered empty as well.
Call the command Find orphaned files
and the file Find orphaned files plugin output.md
will be created in your vault root and opened in a new pane.
- add files to ignore
- add directories to ignore
- add tags to ignore files with one of these tags
- add files to ignore files with links to one of these files
- add specific file types to ignore
- change output file name
Goes through every link in the output file. If the extension of the link is in the list (can be set in settings), it moves the file to system trash. Is useful to delete many unused media files.
Please note that the setting "Disable working links" needs to be disabled.
Custom plugins are only available for Obsidian v0.9.7+.
- Open settings -> Third party plugin
- Disable Safe mode
- Click Browse community plugins
- Search for "Find orphaned files and broken links"
- Install it
- Activate it under Installed plugins
- Download the latest release
- Move
manifest.json
andmain.js
to<vault>/.obsidian/plugins/find-unlinked-files
- Reload Obsidian (Str + r)
- Go to settings and disable safe mode
- Enable
Find orphaned files and broken links
If you find this plugin useful and would like to support its development, you can support me on Ko-fi.