Orphan attachments management

There should be an automagic way to remove orphan attachments.
I suggest the following: when deleting a note which contains the last link to an attachment, there should be a warning After deletion of this note the attachment ... will become orphan. Delete attachment ...? (Yes/No)


A post was merged into an existing topic: Remove unused attachments