Upgrading Moodle question engine to 2.1-How to safely drop old sessions?

Re: Upgrading Moodle question engine to 2.1-How to safely drop old sessions?

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I think the safest way to do this (in any version of Moodle, pretty much) is to write a PHP script that loops over the attempts you want to get rid of, and calls quiz_delete_attempt, or, if you want to do entire quizzes, you could use quiz_delete_all_attempts function instead, which is a bit more efficient.