i-dot-ai / redbox

Bringing Generative AI to the way the Civil Service works
https://i-dot-ai.github.io/redbox/
MIT License
83 stars 27 forks source link

Added lambda for deleting expired files #776

Closed 252afh closed 1 month ago

252afh commented 1 month ago

Context

Adds a new lambda for deleting expired files.

Changes proposed in this pull request

Adds a new lambda that checks for expired files, deletes them (and related chunks) from Elastic, removes them from s3 and then updates the django record.

core infra changes: https://github.com/i-dot-ai/i-ai-core-infrastructure/pull/320

Guidance to review

Relevant links

https://technologyprogramme.atlassian.net/browse/REDBOX-460

Things to check