PHPackages                             lafayettecollege/moodle-tool\_deletecourses - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lafayettecollege/moodle-tool\_deletecourses

ActiveMoodle-tool

lafayettecollege/moodle-tool\_deletecourses
===========================================

This admin tool allows managers to delete all courses in a category (including subcategories if desired).

v4.1.0(1mo ago)824↓75%5[4 issues](https://github.com/LafColITS/moodle-tool_deletecourses/issues)GPL-3.0-or-laterPHPCI passing

Since Jul 15Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/LafColITS/moodle-tool_deletecourses)[ Packagist](https://packagist.org/packages/lafayettecollege/moodle-tool_deletecourses)[ RSS](/packages/lafayettecollege-moodle-tool-deletecourses/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Delete courses
==============

[](#delete-courses)

[![Moodle Plugin CI](https://github.com/LafColITS/moodle-tool_deletecourses/workflows/Moodle%20Plugin%20CI/badge.svg)](https://github.com/LafColITS/moodle-tool_deletecourses/workflows/Moodle%20Plugin%20CI/badge.svg)

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
------------

[](#requirements)

- Moodle 4.1 (build 2022112800 or later)

Installation
------------

[](#installation)

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

Usage
-----

[](#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](https://docs.moodle.org/dev/Task_API#Adhoc_tasks)" 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, click on the desired category link, then:

3.11 or earlier: find "Delete all courses" in the edit cog menu on the top right. 4.0 or later: find "Delete all courses" in the horizontal tab navigation under the course name.

Configuration
-------------

[](#configuration)

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

Acknowledgements
----------------

[](#acknowledgements)

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

Author
------

[](#author)

Charles Fulton ()

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance80

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ef434bc036124ba911b2fdea03980e1867faaddd675e86184cdc2b18d210a66?d=identicon)[lafayettecollege](/maintainers/lafayettecollege)

---

Top Contributors

[![mackensen](https://avatars.githubusercontent.com/u/553370?v=4)](https://github.com/mackensen "mackensen (64 commits)")[![andyzito](https://avatars.githubusercontent.com/u/14895702?v=4)](https://github.com/andyzito "andyzito (1 commits)")[![lucaboesch](https://avatars.githubusercontent.com/u/377279?v=4)](https://github.com/lucaboesch "lucaboesch (1 commits)")[![rhansen-eledia](https://avatars.githubusercontent.com/u/214809718?v=4)](https://github.com/rhansen-eledia "rhansen-eledia (1 commits)")

### Embed Badge

![Health badge](/badges/lafayettecollege-moodle-tool-deletecourses/health.svg)

```
[![Health](https://phpackages.com/badges/lafayettecollege-moodle-tool-deletecourses/health.svg)](https://phpackages.com/packages/lafayettecollege-moodle-tool-deletecourses)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.8k10](/packages/helsingborg-stad-municipio)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7691.4M4](/packages/wp-media-wp-rocket)[october/rain

October Rain Library

1611.7M109](/packages/october-rain)[drupal/recommended-project

Project template for Drupal projects with a relocated document root

1623.0M1](/packages/drupal-recommended-project)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45945.2k1](/packages/pressbooks-pressbooks)[mediawiki/maps

Adds various mapping features to MediaWiki

84157.7k3](/packages/mediawiki-maps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
