Moodle: Where do old file uploads go after changing the file?

In several content types it is possible to upload a file from the computer to the content. For example; in the Interactive Video content type it is possible to upload the video from the computer. What happens if I remove the upload from the content type or if I change the uploaded video to a different video? Will the file be removed from the Moodle files folder or will it still exist somewhere? We don't want the Moodle data folder to be bloated, so we want to make sure the file will be deleted after changing it.

BV52's picture

Hi rogier.wijnands,

Afaik the old video once replaced in the content is also deleted from Moodle's database.

-BV

Thanks for your response! Does this mean just the reference in the database, or is the actual file also deleted from the Moodle data folder?

BV52's picture

Hi rogier.wijnands,

The actual file is deleted although I'm not 100% sure. I am no Moodle expert however knowing the structure of how H5P handles the video it cannot have 2 videos inside the content.

-BV