when installing Joplin on a new terminal, by default, a notebook and a few introductory notes are created. I always start by deleting the “Welcome” notebook, but items are synced to my Nextcloud server anyway. Basically it consists in 3 orphan resources and 5 orphan revisions. Notes are properly deleted.
I’ve removed the orphan resources using Joplin’s Web Clipper API after reading this post Is there a way to force Joplin to run the unused resources cleanup? and checking @tessus great script source code on github.
However there is no API to delete orphan revisions. Checking the DB I find traces of these items in the revisions and sync_items tables.
I was wondering if the orphan revisions are cleaned up properly as well after the configured delay in Joplin’s options ? Is there a way to clean up these orphan resources without waiting for the history cleanup ?
I could erase the files and delete the corresponding items from DB manually (in the revisions and sync_items tables) but it doesn’t feel right.
Any recommendation on removing these orphan revisions ?
Thanks in advance.