1

I was searching around but found no answers about this issue: I have a folder, in my Gmail account, where I automatically (with filters) put mail with attachments and other characteristics... they are basically emails that could be deleted. I periodically delete all emails form such folder.

However, some of them, which have also additional labels, are useful to me and I don't want to delete.

Is there a way of deleting all emails from a folder except the ones which also belong to other folders?

Another way of considering the question: is there a way to delete all messages marked with a certain label only and not with other labels?

1 Answer 1

1

You won't be able to do it with a filter, because those act when the message comes in. However, it's simple to do with a search.

label:first -label:second

That search string will return all conversations with the label first and do not have the label second. The minus sign (- or hyphen, if you prefer) means negation.

More information about search operators is available at Advanced search.

If you want to exclude more labels, simply add them to your search string:

label:first -label:second -label:third
2
  • Many thanks, it partially fix the problem but it can work. The more comprehensive solutions would be to find a way to exclude 'all other labels' without having to specify them all. In my case I have many labels and writing -label:second -label:third ...-thirteenth.. would be a bit annoyng
    – Daniele B
    Nov 27, 2013 at 10:53
  • Yes, unfortunately that's just how it works right now.
    – ale
    Nov 27, 2013 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.