Delete all attachments in items in specific collection or with specific tag

I am looking for a way to delete all of the attachments for entries either a) in a specific collection or b) with a specific tag. I can work with either, though would prefer the tag option.

I have done the advanced search method of trying to delete all attachments, however this does not seem to combine well with limiting the attachments in question to either a collection or a tag.

Here's what I've tried in advanced search:

A) Item type -- is -- attachment AND Tag -- is -- my tag --> this returns nothing unless I check the "Include parent and child items of matching items," but then it includes parent items (they are NOT greyed out), which I don't want to delete (and thus negating the convenience provided by the select all-->move to trash functionality)

B) Item type -- is -- attachment AND Collection -- is -- my collection --> same as above

C) (just to see if it would work) Attachment file type -- is -- PDF AND Tag -- is -- my tag --> same as above

D) (just to see if it would work) Attachment file type -- is -- PDF AND Collection -- is -- my collection --> same as above

Any strategies to get around this?

Thanks in advance!
  • (tags are debatable, but the fact that attachments aren't included in collections in search is, imo, a bug and quite annoying for things like this).

    I think what will work is if you go to the collection, expand all items (+ keyboard key), then select all and assign a colored tag using its keyboard shortcut/number. Then A above will work (because the attachment itself now has the key) you can delete all attachments and the remove the tag again using the same strategy as above.
  • That worked! Thank you!

    PS - I agree that attachments not being included in collections in search is a bug, but I'm glad you found a workaround

    PPS - I also learned today that tags can be applied to attachments separately from their parent items, which may come in handy someday
Sign In or Register to comment.