Adding a background task to delete files older than 1 day

Adding a background task to delete files older than 1 day, and not so
tested the send email stuff