Is there a way to select all of a tag without loading it at once?

For example, I have about 25k items in my inbox, and loading them all just freezes the client. I wanted to archive them. Is there a way to just say "archive everything under inbox"? I didn't plan to delete them.

I do have duplicates in there, but to my knowledge the duplicate checker doesn't just apply to the inbox, it can check archived files right? Should be good.