Are image attachments leaked after deleted images/notes?

Operating system

macOS

Joplin version

3.0.15

Desktop version info

Joplin 3.0.15 (prod, darwin)

Client ID: e5a8169fbe32400a9dfceffeede9521e
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: 598677b

Backup: 1.4.1

What issue do you have?

I am new to joplin and tested image attachment storage.

I find that no matter I delete image markdown content in text or delete entire note, the pasted images will become orphaned.

I am sure I emptied my trash bin so the resource should be deleted because they won't be recovered.

reproduce steps:

  1. add new note
  2. paste image to note
  3. right click on the image in md viewer, reveal in finder
  4. delete md content and see resource folder
  5. delete note & empty trash bin & check resource folder

This forum post should be relevant:

At present, how long attachments are kept after being unlinked from all notes is determined by the "Keep note history for" setting.

Ok. thank you for your reply.
Though I think this is a bug because you don't have any chance to find back the orphan contents if you've emptied trash.