Bulk Course Delete
Massive background course deletion via cron, avoiding slowness and end-user blocking.
General Description
Bulk Course Delete solves the problem of deleting courses at scale without affecting site performance.
Technical Implementation
-
Queue and Batches
- Queues courses to delete with status (pending/in process/done/error).
- Processes in configurable batches to control load.
-
Security
- Only authorized roles can queue tasks.
- Double validation before deletion: context and permissions.
-
Operation
- Logs per course with error cause and retries.
- Integration with scheduled tasks (
\core\task\scheduled_task) depending on version.
Main Features
- Does not affect users
- Secure operation
- Scalable