Is there a way to force Joplin to run the unused resources cleanup?

Yes, there is: jnrmor (you won't need the other script)

1 Like