When does Garbage Collection run?

Operating system

Windows

Joplin version

3.1.24

Desktop version info

Joplin 3.1.24 (prod, win32)

Client-ID: 2ae97ba2c5064845bebb6439430f62df
Sync-Version: 3
Profil-Version: 47
Unterstützter Schlüsselbund: Ja

Revision: d581264

Backup: 1.4.2
Conflict Resolution: 1.2.3
Extra Markdown editor settings: 1.8.0
Hotfolder: 1.2.1

Sync target

Joplin Server

Editor

Markdown Editor

What issue do you have?

When going to Tools --> Note Attachments, I see attachments that should not exist anymore, because their notes are gone.

An example is in the attached screenshot. These AllClients.png come from the Default Notebook "Welcome" that gets created when you start up Joplin for the first time. I understand that it might have saved multiple versions of that picture, because in the beginning I played around with this Notebook and different synchronisation methods and I might have copied that notebook or the note that includes that picture multiple times.

But since everything is cleaned up and the recycle bin was cleaned also a few days ago, I expected that the copies of that picture get deleted also. But they are still here and consume space.

I know that there is also Note History active for 90 days, but since the notes have been gone (except one version), shouldn't a delete + recycle bin cleanup override a the Note History function?

Screenshots

I guess the answer to your question is a clear no. The trash bin is a quite new function for Joplin and I doubt that it changed the note history feature. I speculate, that the user sees in the trash bin only the last version of a note. The history cares for the versions before, which are different objects to Joplin as far as I understand it.

You are right! Since there is not much history to lose, I tried it. What one needs to know is, if you just disable Notes History, nothing is cleaned up (at least it was not for me). But when I reduced the # of days to keep from 90 to 2, the stuff I deleted a few days ago got also removed in the Attachments and in the subsequent sync run.

2 lessons learned:

  1. So just in case someone decides to not use Notes History anymore, do not disable it. Set it to 1 (maybe 0 works too?) days, close / open Joplin to let it do its thing (and sync) and then disable the Notes History.
  2. Notes History is kept even when items are deleted (and you do not have access to the history anymore) until the # of days has passed that is configured in Notes History.
1 Like