Removing "orphaned" image files (and Ally)

Removing "orphaned" image files (and Ally)

wót Howard Miller -
Anzahl Antworten: 2
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Peer reviewers Nutzerbild von Plugin developers

You might not be aware of this (I wasn't). If you add an image in Atto, then "delete" it again in the editor you only delete the link. The actual file remains. You can see the files by clicking the file manager button on the toolbar. 

Now these can mount up in a big course. We hit on it using Ally - it reports on a load of files that you thought you deleted. 

Has anybody seen a plugin, got a great idea and so on.... thoughts about handling these files?


Mittelwert:Useful (3)
Als Antwort auf Howard Miller

Removing "orphaned" image files (and Ally)

wót Joost Elshoff -
Nutzerbild von Particularly helpful Moodlers Nutzerbild von Testers
Hi Howard,

Sounds like an issue that would welcome an improvement, for sure. The ideal workflow for this, IMHO, would be to have a report of sorts available at site level (admins, managers) and course level (editing teachers) listing all orphaned files with a few options, such as:

select for bulk actions (download, delete)
preview
download
delete

You'd see the file name, the extension and the date it was uploaded to the course in a table view.

This may attract interested community members, if there was a tracker issue for such an improvement.
Als Antwort auf Joost Elshoff

Re: Removing "orphaned" image files (and Ally)

wót Randy Thornton -
Nutzerbild von Documentation writers
I had this issue a few years ago with a site I inherited. It had over 25,000 such files on a relatively small site sucking up several Gigs of space. I ended up writing some SQL to show me such files, then assigned them to the users to manually clean from their courses. They of course did not realize that appearing to delete a file did not actually delete the file since that would too sensible traurig

I think an admin level tool to manage for this would be very valuable.