What happens to orphan resources? Are they deleted?

It looks like the documentation pages have been updated / moved since that post. The information on Note History (and a lot more!) is now here.

Also in a post from a while ago Laurent explained how unused resources (attachments) should get automatically deleted.

So it seems to me that if you have Note History set at 90 days and you delete a resource from a note, 90 days later the is_associated database entry for the resource is set to 0 (assuming no other note uses that resource). Then "x days" after that it should get deleted.

I have no idea what the value of "x" is set to or, if it is something more dynamic, how it is calculated.

I am no authority on this, I am just piecing it together from previous posts on this forum and the Joplin site.

However if you have resources that have been missed by this process you can use the Joplin Batch Web Tool to search for any resources that are not referenced by any note and then delete them.

2 Likes