Report Orphaned files
- Moodle 1.9–5.1
- 更新 2025-08-13
# Report Orphaned files #
This plugin is a report to show files that are stored in moodle but are not in use.
This plugin is a report to show files that are stored in moodle but are not in use.
Example:
A teacher adds a material “label” into a moodlecourse and
uploads an image to this label. Then the teacher recognize that this was
the wrong image and selects the image and deletes the image. Now the
teacher adds the correct image.
The problem is, that the first uploades image ist still stored in this
label. This can be seen by clicking at the “manage files” icon where
unused files are indicated at the bottom of the shown dialog.
This report only shows orphaned files that are stored by a
teacher in the intro-field of added moodle activity or moodle material.
The files that are added by students are not checked.
How to access the report
In the course menu there is an additional node if the user has the capability to see the report.
Capabilitys
The capability to view the report is set for ‘editingteacher’ => CAP_ALLOW, by default.
Settings
By default the report is not activated after installation. It can be activated for every user with the capability report/sphophanedfiles:view or only for siteadmins.
- 2.0.7Moodle 4.1, 4.2, 4.3, 4.4, 4.5, 5.0
- 2.0.3Moodle 3.9, 3.10, 3.11