I am struggling with what I believe is a very simple problem. I have a list of email domains
domains = {"aa.com","bb.com","aa.edu"...}
I want to delete all occurrences of "aa.com". So, I tried
DeleteCases[StringContainsQ[#, "aa.com"] &] /@ domains
Sadly, this doesn't work. Could some kind soul enlighten me on what I did wrong? Cheers Andy