feat(dx): remove unused files #141

Open
opened 2026-01-04 19:53:09 +00:00 by chartgerink · 0 comments
Owner

Over time, some cruft will accumulate in our file storage. To reduce the space needed, a maintenance action that can be triggered by the admin would be helpful.

This would find all the files across all the publications, users, etc, and compare them to the files table. Any keys in the files table but not in use, would then be scheduled for deletion.

This would of course require excessive testing and trial runs to ensure nothing of the sorts goes wrong. The deletion of files that are in fact used, would be a truly worst case scenario. The roll out needs to be carefully considered.

Over time, some cruft will accumulate in our file storage. To reduce the space needed, a maintenance action that can be triggered by the admin would be helpful. This would find all the files across all the publications, users, etc, and compare them to the files table. Any keys in the files table but not in use, would then be scheduled for deletion. This would of course require excessive testing and trial runs to ensure nothing of the sorts goes wrong. The deletion of files that are in fact used, would be a truly worst case scenario. The roll out needs to be carefully considered.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
researchequals/api#141
No description provided.