Home / GitHub Page

Clean up resources folder

I have two questions when it comes to cleaning up resources (like images) from Joplin

  1. When I delete a note, it seems that the resources it has (images stored in .config/joplin-desktop/resources) aren’t removed. Is there any way to do that, without requiring me to manually delete files?
  2. Is there a way to delete resources that are no longer in use by notes? I have an old image that I want to remove and I could just delete the file in the .config/joplin-desktop/resources folder, but is there a better way of doing that?

Thanks!

Resources should be automatically deleted after 48 hours, if they are no longer associated with any notes. But there’s a bug open at gh that mentions that orphaned resources are not automatically deleted. Unfortunately this haan’t been fixed yet.
So sometimes they seem to be deleted and sometimes they are not.

Not really, but you could use the script jnrmor from

Please backup your .config/joplin-desktop folder, just in case!

1 Like

Okay I have installed bash shell on Windows. I have installed the getopt dependency. Now I can run your command jnrmor. I have it looking at your conf file however, for the:

Joplin settings directory

JOPLIN_DIR=

are you looking for the Joplin folder that has the sql database file in it?

Yes.

I will add a better comment to the template conf file.