joplin-plugin-delete-unlinked-resources (npm): - This plugin allows you to remove all of resources/attachments such as images, files, etc. which do not link to any notes
Keywords: joplin-plugin