When do deleted notes get purged from database? I have read the method for restoring a deleted note using the restoreNoteRevision command. But seeing how this is available to note history, I assume when it is past how long you keep your note history for, it will purge the items from the database?
Or is everything retained and the database only grows and i should export everything, delete database and reimport on a semi regular basis?
How about attachments? When do they get zapped locally?
How about on a sync target? This I assume depends on the sync target in question and if it retains any of the files once deleted.
Attachments aren't deleted unless I delete them from the tools menu? How do I tell which is linked to a now deleted note? I have a bunch that only say "untitled" with the size and ID. I assume there is a way to easily look up which ones could be purged?
I have frequently found attachments from "old notes" in the list of attachments. It is possible that this has changed with improvements of Joplin over time. I cannot tell.