See
To summarize:
- The
Keep note history for (days)
setting should determine how long it takes for attachments not linked to any note to be removed. - Just before resources are deleted, a line starting with
ResourceService::deleteOrphanResources:
should be added to Joplin'slog.txt
, describing which resources are being removed. - I think automatic resource deletion was added in this commit.