joplin-scripts icon indicating copy to clipboard operation
joplin-scripts copied to clipboard

Resources don't get deleted despite confirmation with "Success"

Open harun27 opened this issue 1 year ago • 3 comments

Hello,

I used this script and it found some resources that aren't used anymore. First I did a dry run using -n. Then I tried to really delete the resources with the following command:

./jnrmor -c /mnt/c/Users/username/Desktop/joplin-scripts-master/.jnrmor.conf

I am using Debian on a Linux subsystem on Windows. Every time I run the command, it says that it deleted the resource (approximately 100 resources) as: Deleting resource id: ff26370a90854de792d1a892862918af - Success. But every time I run it, the same resources get "deleted" but actually don't get deleted. I even checked one resource and it is actually not used by any note but I can find it in the note attachements.

So the script detects the resources which aren't used actually, but doesn't really delete them I think?

Thanks

harun27 avatar Oct 05 '24 11:10 harun27

Hmm, I have to try to reproduce this. I don't have any orphaned resources currently, thus I don't see what is going on.

I have used it in the past to delete my orphaned resources and afaik the db structure hasn't changed. Thus I am not sure what the issue could be. I'll try to reproduce your use case, or maybe I can add some additional debug code. I just don't know when I'll get to it.

tessus avatar Oct 06 '24 09:10 tessus

Okay thank you, there's no hurry for me. But maybe the version might help you:

GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)

Joplin 3.0.14 (prod, win32)

Client ID: 560c8c992b184b10a3106b472cd0eca8 Sync Version: 3 Profile Version: 47 Keychain Supported: Yes

Revision: 05cf51e

Backup: 1.4.1 Note Tabs: 1.4.0 Outline: 1.5.13 Rich Markdown: 0.15.0

harun27 avatar Oct 06 '24 11:10 harun27

still trying to reproduce the issue... just wanted to give you a status update. I have not forgotten or ignored this.

tessus avatar Oct 13 '24 16:10 tessus