Hi,
I have a 170GB DB and need to delete all course without activity since 2 years ago. I can get a list from mysql, but I need a method to remove them safely from moodle (DB and mdata).There is https://github.com/daparker26/moodle-cli-delete-courses/blob/master/delete_courses.php but is from 2015, and I have moodle 3.5, I prefer to listen to other suggestions.
Thanks!