Totara Learn Open Discussions

Bulk delete course completion records

 
Paul Lowndes
Bulk delete course completion records
על ידי Paul Lowndes בתאריך 29/06/2023, 03:26
קבוצה Most Helpful Contributor 2021

Dear all


We have accidentally enrolled the wrong cohort on a course. What is the best way to delete completion records in bulk so they do not appear in reports and users record of learning?


Thanks

Paul

Craig Eves
Re: Bulk delete course completion records
על ידי Craig Eves (Totara Support) בתאריך 29/06/2023, 20:27
קבוצה Totara

Hi Paul

There is a script that can be run that will delete all (or a time-based subset of) unstarted course completion records of users who are no longer enrolled on a given course. This script can be found at admin/cli/delete_unused_course_completions.php and can be run with a --help flag to output usage instructions.

regards