Select groups based on filenames

I would like to select all groups in a database that do not contain a document named ‘foo’. I have no idea how to do that. Any help?

Thanks
Robert

That’s not possible. What exactly are you trying to do?