Hello, I am very new, these are my first steps with Obsidian.
I am sure my “problem” is already explained somewhere but I cannot find it in the help - probably I do not know what to search for… sorry.
I created a file, with pictures.
I put the pictures in a seperate picture-folder.
Obsidian asked me if I wanted to automatically link the pictures. I agreed.
The pictures show when I open the file.
I delete the file.
The pictures are still in the picture-folder.
How can I get the linked pictures to be deleted with the file?
The behavior is expected. I discovered this when starting out as well.
There is not a 1:1 relationship between Notes and Attachments. So when you move or delete a note, the attachments are not touched, because they could be attached to other notes also.
A feature request could be (and I am pretty sure it already exists) that when there is in reality only a 1:1 relationship, delete (or move) attachments also.
I did just find the community plugin called Janitor that can help with orphaned attachments.