-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Description
Operating system
- Windows
- macOS
- Linux
- Android
- iOS
Application
- Desktop
- Mobile
- Terminal
If it is a bug if possible please provide a screenshot showing the problem
If there is an error, please copy and paste the full error message
When adding a file to a note, eg an image it will be referenced like this:

and the file is stored as
.resource\f0f48abb927541f9b4cfdcad94d2ec27
I use the folder _sync_joplin in my Dropbox as local storage for joplin data.
Now, when you delete the reference from the note, the image disappears from the note (normal behaviour) but is still present in the .resource folder. Same behaviour if you entirely delete the note itself.
Think about what happens after using the application for a very long time where you might have deleted a lot of notes, all the Files you added will still remain in the .resource folder and on operating systems, where file extensions matter you can't even double-click them to open from within the .resource folder because they do not have a file extension and.
A workarround could be to ask the user if a file is removed from a note or a note is deleted, if the file should also be deleted as a resource.
At least if a note is deleted, all files attached to it should be deleted, too.
Regards
PCFreak