Is there a way to do something like this in Powershell:
"If more than one file includes a certain set of text, delete all but one"
Example: