Deleting/removing item should remove/ask to remove any attachments
Is it possible when deleting an item to have any associated attachments to be removed as well? Removing an item requires to move that item into trash first and then delete it but the attachments still remain in the directory structure on my disk. Any ways to resolve this issue or somehow fix it since it leads to wasted space and redundancy of files which are not any more necessary.
Zotero won't delete linked files and probably shouldn't.
"Zotero won't delete linked files and probably shouldn't"
Why is that necessarily bad if the user wants to remove an item and everything associated with it. Especially when you explicitly move everything into the trash and then empty the trash?
Is there any other way that it can be achieved via a third party plugin, zotfile or sth?
If you wanted Zotero to handle your files, you'd store them as attachments, i.e. in Zotero's data folder.
While that doesn't mean there couldn't be some way to do this, the current behavior is absolutely the correct default and in line with how links work elsewhere. We'd want to think carefully before even adding the ability to have Zotero start deleting files outside of its own data directory, which is fundamentally pretty dangerous and error-prone.
(And no, deleting a softlink or a hardlink or a symlink does not delete the original file)
"Move Items to Trash (incl. Linked Files)"
= "Convert Linked Files to Stored Files" + "Move Items to Trash"
The procedure would then be to move items to trash as usual (no need for another option in the context menu). Before emptying the Trash folder, you could review the trashed items and use "Convert Linked Files to Stored Files" if needed.
https://forums.zotero.org/discussion/comment/364101/#Comment_364101