Enrol Sync: Course deletion file
From MoodleDocs
This file allows asking the "course deletion tool" to remove massively courses in Moodle.
A report file is generated after execution of the test in the special sync file cabinet at the following location:
sync/reports
This file can be retrieved using the embedded file manager.
File format
The course deletion file is a simple text file giving the identifiers of the courses to delete (one per line). The identifying attribute to match courses can be choosen as:
- Course ID (numeric DB id)
- Course shortname
- Course IDNumber
File Sample
shortname1 shortname2 shortname3
Generating the deletion file
For convenience, an additional tool allows to generate a suitable deletion file.