Automatically deleting files that contain a specific content
Assuming you want to delete them without further ado, use

rm $(grep -lr "text to find" *)


The $(..) runs the command within the parenthesis and uses its output as arguments for rm.