When I attach a file to a note (drag-and-drop) it gets copied to “resources” directory. However if I remove the reference (from the note), the file in “resources” is still there even if no other note points to it.
Is there any way to clean-up “unused” resources?
There is a resource cleanup that should remove unused resources in a matter of hours (maybe days?). Unfortunately it does have a bug where some resources are missed, you can search the forum for tools that will allow you do deal with that bug. You’ll probably just need to wait for awhile before the resource is removed though.