Moodle Plugins directory: Delete courses | Moodle.org
Delete courses
Administration tools ::: tool_deletecourses
Maintained by
Charles Fulton,
Andrew Zito
This admin tool allows managers to delete all courses in a category (including subcategories if desired). The tool may optionally bypass the recycle bin for improved performance.
Latest release:
941 sites
463 downloads
25 fans
Current versions available: 6
This admin tool allows managers to delete all courses in a category (including subcategories if desired). The tool may optionally bypass the recycle bin for improved performance. It uses an Adhoc task to process the actual deletions and requires cron to be enabled.
Useful links
Contributors
Charles Fulton (Lead maintainer)
Andrew Zito
Please login to view contributors details and/or to contact them
I also doubled up on this deletion issue and charged this with Moodle HQ https://tracker.moodle.org/browse/MDL-69139
i do think however this module would be a better solution rather than waiting for Moodle HQ to implement something.
When will your cli version be available? Is it also possible to select courses that aren't used anymore befory a given date? And is your plugin working in Moodle 3.9?
The current version was tested with Moodle 3.9 and works. There's no date for the cli version; I still think it's a good idea but I've no time to work on it. Regarding selecting courses based on date, there's no such functionality and no current plans to include it.
Best,
Charles
Thanks for you message. I tried to install the plugin, but I can't see a button in the course administration to delete the courses.
Do you have an example where I can find it?
Thank you for the plugin.
I ve installed it in Moodle 3.5.2+, correctly found the link Delete all courses in my category, run manually the cron.php and see only one adhoc task "Execute adhoc task: core_course\task\course_delete_modules" , but courses are not deleted, they still appear in the list. What can be the problem? I've denyed the access to the link to manager rol too, so it is only visible to main managers.
After you click on 'Delete all courses' you will then have the option to include subcategories and bypass the recycle bin. Bypassing the recycle bin will also help speed up the deletions.
Interestingly, I fell into the same issue as others, expecting to see this in the System Administration area..
But per your directions, it's in the student-view, but with admin access, you navigate to the category, then click on the cog to find the Delete All courses option.