After Deleting Quiz/Tests they don't get removed from the Database

Re: After Deleting Quiz/Tests they don't get removed from the Database

by S G -
Number of replies: 0
@santonymous HackerOneUser

When you delete a quiz, it goes into the recycle bin and gets emptied when the cycle runs. (You can see the documentation for your Moodle version to see how to work with the recycle bin function.)

However, deleting a quiz does not remove everything - if the quiz has been attempted by any user.

The system will still have the scores + the details of the questions used in that specific attempt of the quiz etc.

If you try to delete the questions (from the question banks) that had been used in the deleted quiz, the system will not let you delete.

If you want to delete a quiz and the questions used in any previous attempts of the quiz, you have to delete all the attempt history of the quiz for all users.

Or, you can just reset the entire course (taking care not to delete the users); this will remove all scores and attempt history for all users of the course. After doing this, you can delete quizzes + the questions used in the quiz.