The plugin is developed to archive courses once a term an remove the archived courses from the term before. The Process of archiving has to be started manually and has a confirmation form before it begins with any changes. The timespan in days, of the past term, can be configured within the plugin configuration.
Archiving means the course will be set invisible, moved to the configured archive category and all student users will be unenroled.
The same process deletes old courses in the archive category. The old courses will be deleted if there course begin is before the chosen timespan.
NOTE: In Github we use an empty master branch. The different plugin versions can be found in special branches for each Moodle version.