Clear Backup Files
- Moodle 4.5–5.2
- 更新 2026-06-24
Course backups can be an expensive task at times. It could take loads of unnecessary space and memory on the server. Administrators can clear backup files on the server to free the server space.
package: tool_clearbackupfiles
This admin tool clears all backup files from the server. It is useful for freeing up space from dev and test servers once they are refreshed from production.
It also gives a report og how many mbz files were deleting clearing how much space.
Instructions:
the backup files can be deleted from /admin/tool/clearbackupfiles/index.php and you can find logs at /report/log/index.php. The default moodle events is used to create log entry.
The plugin also has a setting to enter number of days and associated scheduled task to do the cleanup automatically.