Delete courses

Administration tool ::: 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.

Delete courses v3.6.0

Moodle 3.6, 3.7, 3.8, 3.9, 3.10, 3.11
Released: Thursday, 29 November 2018, 4:07 AM

Delete courses

Build Status

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.6 (build 2018112800.00 or later)

Installation

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

Usage

The tool 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)

Version information

Version build number
2018112800
Version release name
v3.6.0
Can be updated from
v0.1.0 (2017032902), v1.0.0 (2017051201), v1.0.0-31 (2017051200), v3.3.0 (2017051202), v3.4.0 (2018051300), v3.3.1 (2017051203), v3.4.1 (2018051301)
Maturity
Stable version
MD5 Sum
76ebe2d27a20184e61439cb6f46d10a5
Supported software
Moodle 3.6, Moodle 3.7, Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS branch
main
VCS tag
v3.6.0

Default installation instructions for plugins of the type Administration tool

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "mytool") in the "admin/tool" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation