Find all files, execute a grep search for the string "string", sort the results in reverse numerical order, and delete the files found.
find . -type f -exec grep -l "string" {} \; | sort -rn | xargs rm -f