web-components icon indicating copy to clipboard operation
web-components copied to clipboard

Warn, then delete file attachments when changing group settings

Open fcheslack opened this issue 6 years ago • 2 comments

To avoid orphan attachment items that would no longer be possible to create with the new group settings, before a setting change that disables files is applied the user should be asked for confirmation, then all attachment items should be batch deleted on the page before the setting change finally goes through.

https://forums.zotero.org/discussion/75310/option-to-purge-group-library-data

fcheslack avatar Jan 07 '19 22:01 fcheslack

As noted in https://github.com/zotero/dataserver/issues/30#issue-154864497, the best way to find these currently is to do a search for ?itemType=attachment and then look for .data.linkMode being imported_url or imported_file.

dstillman avatar Jan 08 '19 02:01 dstillman

Thanks for doing this. Stuff from group libraries is really clogging up my hard drive. I just turned off syncing of Group files. Two questions:

  • When will this update appear in a release?
  • When it does, will I have to do anything further, or will it automatically remove the orphaned files?

Thanks for all your good work.

ntnsndr avatar Feb 05 '19 05:02 ntnsndr