Note: You are currently viewing documentation for Moodle 2.3. Up-to-date documentation for the latest stable version is available here: Enrol Sync: Course deletion file.

Enrol Sync: Course deletion file

From MoodleDocs

Back to index

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.