Delete files on spaces when files are older than X days

December 10, 2017 1k views
Storage Ubuntu 16.04

Hi Guys,

Since it's not yet possible to add an expiry date/time with spaces when you upload a file.
What's the best way to automatically delete all files older than X days/weeks/months?

1 Answer

Hi! You can use with min-age and put it in cronjob.

  • Is this the solution as of today or is there a feature to add an expiry date/time? Thanks!

Have another answer? Share your knowledge.