Totara Learn Open Discussions

Bulk delete course completion records

 
Paul Lowndes
Bulk delete course completion records
door Paul Lowndes - Thursday, 29 June 2023, 03:26 AM
Groep 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
door Craig Eves (Totara Support) - Thursday, 29 June 2023, 20:27 PM
Groep 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