We have a course that we would like users to do annually.
Currently, if users are unenrolled from a course and then re-enrolled, their original scores are reinstated. Does anyone know if there is a way around this please?
The Course Recompletion plugin does this kind of thing, e.g. erases learners' completion data after a period
Thank you Leon. We will have a look at this plugin.
Are there any no course settings in Moodle to remove the scores when learners are unenrolled, or remove scores after a period of time?
Are there any no course settings in Moodle to remove the scores when learners are unenrolled, or remove scores after a period of time?
I've encountered people who run their own SQL statements to do this or have custom plugins to do the same thing.
But as far as I know that plugin is the usual way to do this. Hopefully someone will correct me if I'm wrong.
Thank you Leon. Much appreciated.
I agree with Leon, that plugin is the best way to do it.
To do this with SQL will take a huge amount of work because course data is kept in a lot of places, and some of it persists (by design) after unenrolment from a course, such as the Course completion and Grade history tables, to name only two. Dan Marsden has already figured all that out for us, for which we own him thanks with this plugin.
To do this with SQL will take a huge amount of work because course data is kept in a lot of places, and some of it persists (by design) after unenrolment from a course, such as the Course completion and Grade history tables, to name only two. Dan Marsden has already figured all that out for us, for which we own him thanks with this plugin.
Thank you Randy.
My colleague tried to install the plugin on a test server for me last night, but got the following error message. He is going to try again tonight for me.
My colleague tried to install the plugin on a test server for me last night, but got the following error message. He is going to try again tonight for me.

I believe that he may have take a copy of our live site, which is running Moodle version 3.10.4 (build 20210510) and I note that the latest versions of Moodle available are:
- Moodle 3.11.3+ (Build: 20211013) Version 2021051703.06 (Stable version)
- Moodle 3.10.7+ (Build: 20211013) Version 2020110907.06 (Stable version)
Does this mean that he needs to upgrade to Moodle version 3.11.3+ before he tries to add the plugin?
On the Versions page for that plugin there are different versions for the Moodle versions it supports:

The message:
![]()
means that the plugin version you're trying to install requires Moodle 3.11.
If you have Moodle 3.10, download plugin version 2021092000.
Great, thanks. That's what I thought. I have passed the info to my colleague.