I have thousands of files in my /assets directory. I’ve created a script to identify all the orphans (= asset files that are no longer referenced in any page in /pages).
Here is the problem I’m facing:
When I move all these unused assets (while offline) out of the /assets directory (into a backup folder outside Logseq), re-index my graph, and then reconnect to the web, the sync process triggers.
That same sync process then re-downloads all the assets I just moved.
Is this the expected behavior? How can I remove the useless assets without them being re-downloaded (or re-synced) each time?
Thanks for your help!