Deleting duplicate files in Zotero storage folder
I have a lot of attachments all occupying an individual folder with a cryptic name (eg, C6BZIRYB). They belong to a group that is stored in Zotero storage online and used by a few people. The problem is that many files are duplicates (or triplicaets, etc.) that link to no reference in the client interface.
Why do they occur? (can deleting a group online leave those files? they often have different names)
How can one remove or identify them in bulk (happy to use API if needed)?
Is it possible to know if a cryptic folder name or the PDF file within it link to an existing reference, and to which one?
I am using 5.0.55
Thank you.
Why do they occur? (can deleting a group online leave those files? they often have different names)
How can one remove or identify them in bulk (happy to use API if needed)?
Is it possible to know if a cryptic folder name or the PDF file within it link to an existing reference, and to which one?
I am using 5.0.55
Thank you.
Broken attachments
Duplicate attachments
And I am not sure the plugin is identifying the orphans. That is the files in storage that are not associated with a reference and do not appear in the client. This was the main problem. Or am I missing something?
This does not seem like it can be the result of group deletions, which might have been done twice, with relatively small numbers of references in those groups.
Any further advice? If this is a common effect, a large group with a reasonable number of members and references will get clogged very quickly. This result is only after a month or two of use.
If you're comfortable running Perl or Python scripts, there are some third-party scripts that can delete orphaned folders in this thread:
https://forums.zotero.org/discussion/9091/orphaned-attachment-files
As adamsmith says, we're planning to add functionality to clean up orphaned files automatically in a future version.