I do. As I mentioned above, one option is to create a new, restrictive role.
If you unenrol someone from a course, Moodle actually deletes all their grades (if you don't believe me, look at the logs in the database). It's doesn't delete the grade history, however. If a plugin doesn't exist (I can't think of one), one could be written. The first problem I can think of, is how do you know which courses to include if the students are no longer in them? You're kind of fighting against Moodle's view of the world.
I'm assuming that you're unenrolling students. You haven't actually said what you do at the "end" of a course.
This has always been a limitation of Moodle. It's is very course-centred. There isn't much that works "across" courses.
This has always been a limitation of Moodle. It's is very course-centred. There isn't much that works "across" courses.