I have 2 courses
with different activities in them where all my users
are enrolled
.
After I completely delete
some user, the data for course completions of the user is still in the table mdl_course_completions
.
The users don't appear enrolled in the course, neither the grades are kept, only the completion data.
I don't want every time to delete users manually from the mdl_course_completions
table
in the database
.
Is there any workaround in the code?