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

Allow Emptying Trash

Open fcheslack opened this issue 9 years ago • 2 comments

We should allow emptying the entire trash with a single operation from the web library.

  • get the full list of items in the trash (/items/trash?format=keys)
  • confirm the user wants to permanently delete X items (?)
  • perform the multiple DELETE requests to permanently delete the items (probably in series, rather than parallel)
  • report the progress of the operation as it goes

Parts of this could potentially be re-used in other contexts, such as reporting progress for multi-request operations (bulk edit?)

Emptying the trash is easily the most requested such option, but we could also potentially apply other operations to all items in a view (rather than just the N items currently displayed) such as moving to a collection or tagging, but that involves harder UI questions.

fcheslack avatar Dec 18 '15 16:12 fcheslack

We should probably wait for zotero/dataserver#5

tnajdek avatar Oct 15 '20 11:10 tnajdek

I don't think we want to support this in the API. Someone could have 100K items in the trash, so it can't necessarily be done in a single request. So I think doing it in batches with a progress meter makes more sense.

dstillman avatar Jun 20 '23 09:06 dstillman