Delete all quiz attempts by cron job

Delete all quiz attempts by cron job

napisao/la Bente Olsen -
Number of replies: 3
Slika Testers Slika Translators

Is it possible to setup a cron job that deletes all quiz attempts in a course? I have access to cpanel, files and phpMyAdmin on the server. (Moodle 1.9)

Prosjek ocjena: -
In reply to Bente Olsen

Re: Delete all quiz attempts by cron job

napisao/la Tim Hunt -
Slika Core developers Slika Documentation writers Slika Particularly helpful Moodlers Slika Peer reviewers Slika Plugin developers

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.

In reply to Tim Hunt

Ang: Re: Delete all quiz attempts by cron job

napisao/la Bente Olsen -
Slika Testers Slika Translators

Thanks for your answer, it sounds promising though I am not skilled to do that myself.