The plugin ‘Delete unlinked resources’ does not work in Joplin version 3. It appears to delete all attachments.
It seems better to disable the download link of this plugin.
Is there a change in version 3 that would prevent this from working?
The original plugin's GitHub repository has been removed, but the source code is now available here.
github/snake-git/joplin-plugin-jl14-pub
This requests the list of notes associated with resource.id from Joplin. Joplin responds to this request using information that isn't updated very often (I think 30 seconds after Joplin's startup, then every few hours). As such, the plugin thinks that a resource that was just attached to a note is linked to by no notes.
Based on this, older attachments might still be safe.
Thanks for supporting the plugin database and clear explanation!
In my Joplin profile, this plugin also deleted the old image files that were attached to the "Welcome" message when I installed Joplin a few months ago.
It may have deleted old attachments as well. I haven't figured out how to create a plugin or the API, but I'd like to try to improve the plugin if there's a way to fix it.