Auto Delete Files
The Student Portal includes an auto-deletion feature for the purpose of freeing up storage for classes that's already finished. This feature deletes all course documents and attachments for posts, assignments and assignment submissions.
This happens after the number of days depending on what you have specified in 'days after course end date' field under
Course > Configuration > Student Portal.