Skip to content

learningx-project/tool_deletecourses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delete courses

Moodle Plugin CI

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.

Requirements

  • Moodle 3.9 (build 2020061500 or later)

Installation

Copy the deletecourses folder into your /admin/tool directory and visit your Admin Notification page to complete the installation.

To install it using git, type this command in the root of your Moodle install:

git clone https://github.com/learningx-project/tool_deletecourses.git tool/deletecourses 

Then add /tool/deletecourses to your git ignore.

Usage

The tool adds a link to the category navigation block, "Delete all courses." The user will be taken to a page describing what will happen and requesting confirmation. On confirmation, Moodle will create an "adhoc task" to delete all the courses in the background. This requires the cron be enabled.

If you're using Boost or a similar theme, you may need to access /course/index.php directly, navigate to the desired category, then click the edit cog at top right to reach the links.

Configuration

The tool has no options but does require, as mentioned above, that cron be running.

Acknowledgements

Eric Merrill at Oakland University suggested the locking functionality and the method for bypassing the recycle bin.

Author

Charles Fulton (fultonc@lafayette.edu)

About

Moodle 3.9, 3.10, 3.11, 4.0, 4.1, 4.2 Released: Wednesday, 13 April 2022, 3:00 AM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published