Totara Learn Open Discussions

Bulk delete course completion records

 
LowndesPaul
Bulk delete course completion records
LowndesPaul 发表于 2023年06月29日 Thursday 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
Eves (Totara Support)Craig 发表于 2023年06月29日 Thursday 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