You will have to write some PHP code yourself to do this, but it is not too hard. There is a quiz_delete_all_attempts function in mod/quiz/lib.php.
Thanks for your answer, it sounds promising though I am not skilled to do that myself.
Did you solve this question? I know it was a while ago.