devilry / devilry-django

Devilry project main repository
http://devilry.org
BSD 3-Clause "New" or "Revised" License
51 stars 24 forks source link

Clean-up command for temporary upload files #996

Open torgeirl opened 6 years ago

torgeirl commented 6 years ago

When one or more files are uploaded to Devilry, they are first put in the cradmin_temporaryfileuploadstore sub-directory before they are copied to their permanent location when the user finalize the operation.

Sysadmins should have a tool to automate clean-up of these files, and since they are (temporarily) referenced by the Devilry server it would be best if this was done by a manage command similar to devilry_delete_compressed_archives. It should have the same options (--all, --days and --seconds).

torgeirl commented 3 months ago

This is still relevant. It is possible to delete the references to the files from Django Admin (/djangoadmin/cradmin_temporaryfileuploadstore/temporaryfilecollection), but the files themselves are not removed from storage (tested with Devilry 6.3.3 using S3).